瀏覽代碼

0421 cloud micrometer

Qing 1 年之前
父節點
當前提交
bd919223a2

+ 54 - 50
springcloud-demo/.idea/workspace.xml

@@ -4,11 +4,9 @@
     <option name="autoReloadType" value="SELECTIVE" />
   </component>
   <component name="ChangeListManager">
-    <list default="true" id="4074a161-1a6c-49f9-bbc5-f70fc0666d46" name="Changes" comment="0421 cloud openfeign header">
+    <list default="true" id="4074a161-1a6c-49f9-bbc5-f70fc0666d46" name="Changes" comment="0421 cloud micrometer">
       <change afterPath="$PROJECT_DIR$/../.idea/VIPJAVA.iml" afterDir="false" />
       <change afterPath="$PROJECT_DIR$/../gn_oa_vip27/.idea/google-java-format.xml" afterDir="false" />
-      <change afterPath="$PROJECT_DIR$/eureka-client-supplier-demo/src/main/java/com/sf/eurekaclientdemo2/controller/CircuitController.java" afterDir="false" />
-      <change afterPath="$PROJECT_DIR$/eureka-client-supplier-demo/src/main/java/com/sf/eurekaclientdemo2/controller/MicrometerController.java" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/../02_JavaWeb/day06_mybatis/src/main/java/com/lc/mapper/UserMapper.java" beforeDir="false" afterPath="$PROJECT_DIR$/../02_JavaWeb/day06_mybatis/src/main/java/com/lc/mapper/UserMapper.java" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/../02_JavaWeb/day06_mybatis/src/main/resources/com/lc/mapper/UserMapper.xml" beforeDir="false" afterPath="$PROJECT_DIR$/../02_JavaWeb/day06_mybatis/src/main/resources/com/lc/mapper/UserMapper.xml" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/../02_JavaWeb/day07_mybatis/src/main/resources/com/lc/mapper/UserMapper.xml" beforeDir="false" afterPath="$PROJECT_DIR$/../02_JavaWeb/day07_mybatis/src/main/resources/com/lc/mapper/UserMapper.xml" afterDir="false" />
@@ -20,13 +18,9 @@
       <change beforePath="$PROJECT_DIR$/../rocketmq-demo/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/../rocketmq-demo/.idea/workspace.xml" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/eureka-client-caller-demo/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/eureka-client-caller-demo/pom.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/eureka-client-caller-demo/src/main/java/com/sf/eurekaclientdemo1/controller/FeignController.java" beforeDir="false" afterPath="$PROJECT_DIR$/eureka-client-caller-demo/src/main/java/com/sf/eurekaclientdemo1/controller/FeignController.java" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/eureka-client-caller-demo/src/main/java/com/sf/eurekaclientdemo1/feign/MyFeignClient.java" beforeDir="false" afterPath="$PROJECT_DIR$/eureka-client-caller-demo/src/main/java/com/sf/eurekaclientdemo1/feign/MyFeignClient.java" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/eureka-client-caller-demo/src/main/resources/application.yml" beforeDir="false" afterPath="$PROJECT_DIR$/eureka-client-caller-demo/src/main/resources/application.yml" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/eureka-client-supplier-demo/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/eureka-client-supplier-demo/pom.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/eureka-client-supplier-demo/src/main/java/com/sf/eurekaclientdemo2/controller/HeaderController.java" beforeDir="false" afterPath="$PROJECT_DIR$/eureka-client-supplier-demo/src/main/java/com/sf/eurekaclientdemo2/controller/HeaderController.java" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/eureka-client-supplier-demo/src/main/resources/application.yml" beforeDir="false" afterPath="$PROJECT_DIR$/eureka-client-supplier-demo/src/main/resources/application.yml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/pom.xml" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -69,47 +63,47 @@
   <component name="ProjectViewState">
     <option name="showLibraryContents" value="true" />
   </component>
-  <component name="PropertiesComponent"><![CDATA[{
-  "keyToString": {
-    "Application.TestHashMap.executor": "Run",
-    "HTTP Request.rest-api_5 | #1.executor": "Run",
-    "HTTP Request.rest-api_6 | #1.executor": "Run",
-    "Maven. [org.apache.maven.plugins:maven-archetype-plugin:RELEASE:generate].executor": "Run",
-    "RequestMappingsPanelOrder0": "0",
-    "RequestMappingsPanelOrder1": "1",
-    "RequestMappingsPanelWidth0": "75",
-    "RequestMappingsPanelWidth1": "75",
-    "RunOnceActivity.OpenProjectViewOnStart": "true",
-    "RunOnceActivity.ShowReadmeOnStart": "true",
-    "SHARE_PROJECT_CONFIGURATION_FILES": "true",
-    "Spring Boot.ClientDemo1Application.executor": "Run",
-    "Spring Boot.ClientDemo2Application.executor": "Run",
-    "Spring Boot.EurekaClientCallerDemoApplication.executor": "Run",
-    "Spring Boot.EurekaClientDemo1Application.executor": "Run",
-    "Spring Boot.EurekaClientDemo2Application (1).executor": "Run",
-    "Spring Boot.EurekaClientDemo2Application (2).executor": "Run",
-    "Spring Boot.EurekaClientDemo2Application.executor": "Run",
-    "Spring Boot.EurekaClientSupplierDemoApplication(1).executor": "Run",
-    "Spring Boot.EurekaClientSupplierDemoApplication.executor": "Run",
-    "Spring Boot.EurekaServiceDemo1Application.executor": "Run",
-    "Spring Boot.EurekaServiceDemo2Application.executor": "Run",
-    "Spring Boot.EurekaServiceDemoApplication.executor": "Run",
-    "git-widget-placeholder": "master",
-    "jdk.selected.JAVA_MODULE": "corretto-17",
-    "kotlin-language-version-configured": "true",
-    "last_opened_file_path": "/Users/Qing/IdeaProjects/SiFu/VIPJAVA/springcloud-demo/eureka-client-supplier-demo/src/main/resources",
-    "node.js.detected.package.eslint": "true",
-    "node.js.detected.package.tslint": "true",
-    "node.js.selected.package.eslint": "(autodetect)",
-    "node.js.selected.package.tslint": "(autodetect)",
-    "nodejs_package_manager_path": "npm",
-    "project.structure.last.edited": "Modules",
-    "project.structure.proportion": "0.0",
-    "project.structure.side.proportion": "0.0",
-    "settings.editor.selected.configurable": "File.Encoding",
-    "vue.rearranger.settings.migration": "true"
+  <component name="PropertiesComponent">{
+  &quot;keyToString&quot;: {
+    &quot;Application.TestHashMap.executor&quot;: &quot;Run&quot;,
+    &quot;HTTP Request.rest-api_5 | #1.executor&quot;: &quot;Run&quot;,
+    &quot;HTTP Request.rest-api_6 | #1.executor&quot;: &quot;Run&quot;,
+    &quot;Maven. [org.apache.maven.plugins:maven-archetype-plugin:RELEASE:generate].executor&quot;: &quot;Run&quot;,
+    &quot;RequestMappingsPanelOrder0&quot;: &quot;0&quot;,
+    &quot;RequestMappingsPanelOrder1&quot;: &quot;1&quot;,
+    &quot;RequestMappingsPanelWidth0&quot;: &quot;75&quot;,
+    &quot;RequestMappingsPanelWidth1&quot;: &quot;75&quot;,
+    &quot;RunOnceActivity.OpenProjectViewOnStart&quot;: &quot;true&quot;,
+    &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
+    &quot;SHARE_PROJECT_CONFIGURATION_FILES&quot;: &quot;true&quot;,
+    &quot;Spring Boot.ClientDemo1Application.executor&quot;: &quot;Run&quot;,
+    &quot;Spring Boot.ClientDemo2Application.executor&quot;: &quot;Run&quot;,
+    &quot;Spring Boot.EurekaClientCallerDemoApplication.executor&quot;: &quot;Run&quot;,
+    &quot;Spring Boot.EurekaClientDemo1Application.executor&quot;: &quot;Run&quot;,
+    &quot;Spring Boot.EurekaClientDemo2Application (1).executor&quot;: &quot;Run&quot;,
+    &quot;Spring Boot.EurekaClientDemo2Application (2).executor&quot;: &quot;Run&quot;,
+    &quot;Spring Boot.EurekaClientDemo2Application.executor&quot;: &quot;Run&quot;,
+    &quot;Spring Boot.EurekaClientSupplierDemoApplication(1).executor&quot;: &quot;Run&quot;,
+    &quot;Spring Boot.EurekaClientSupplierDemoApplication.executor&quot;: &quot;Run&quot;,
+    &quot;Spring Boot.EurekaServiceDemo1Application.executor&quot;: &quot;Run&quot;,
+    &quot;Spring Boot.EurekaServiceDemo2Application.executor&quot;: &quot;Run&quot;,
+    &quot;Spring Boot.EurekaServiceDemoApplication.executor&quot;: &quot;Run&quot;,
+    &quot;git-widget-placeholder&quot;: &quot;master&quot;,
+    &quot;jdk.selected.JAVA_MODULE&quot;: &quot;corretto-17&quot;,
+    &quot;kotlin-language-version-configured&quot;: &quot;true&quot;,
+    &quot;last_opened_file_path&quot;: &quot;/Users/Qing/IdeaProjects/SiFu/VIPJAVA/springcloud-demo/eureka-client-supplier-demo/src/main/resources&quot;,
+    &quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
+    &quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
+    &quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
+    &quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
+    &quot;nodejs_package_manager_path&quot;: &quot;npm&quot;,
+    &quot;project.structure.last.edited&quot;: &quot;Modules&quot;,
+    &quot;project.structure.proportion&quot;: &quot;0.0&quot;,
+    &quot;project.structure.side.proportion&quot;: &quot;0.0&quot;,
+    &quot;settings.editor.selected.configurable&quot;: &quot;File.Encoding&quot;,
+    &quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
   }
-}]]></component>
+}</component>
   <component name="RecentsManager">
     <key name="CopyFile.RECENT_KEYS">
       <recent name="$PROJECT_DIR$/eureka-client-supplier-demo/src/main/resources" />
@@ -242,7 +236,8 @@
       <workItem from="1712747538100" duration="4625000" />
       <workItem from="1713064649248" duration="15928000" />
       <workItem from="1713347248141" duration="10258000" />
-      <workItem from="1713617762986" duration="18470000" />
+      <workItem from="1713617762986" duration="19732000" />
+      <workItem from="1713691359392" duration="1588000" />
     </task>
     <task id="LOCAL-00001" summary="0410 cloud eureka">
       <option name="closed" value="true" />
@@ -300,7 +295,15 @@
       <option name="project" value="LOCAL" />
       <updated>1713681592546</updated>
     </task>
-    <option name="localTasksCounter" value="8" />
+    <task id="LOCAL-00008" summary="0421 cloud micrometer">
+      <option name="closed" value="true" />
+      <created>1713689723321</created>
+      <option name="number" value="00008" />
+      <option name="presentableId" value="LOCAL-00008" />
+      <option name="project" value="LOCAL" />
+      <updated>1713689723321</updated>
+    </task>
+    <option name="localTasksCounter" value="9" />
     <servers />
   </component>
   <component name="TypeScriptGeneratedFilesManager">
@@ -401,7 +404,8 @@
     <MESSAGE value="0414 cloud openfeign" />
     <MESSAGE value="0414 cloud openfeign header" />
     <MESSAGE value="0421 cloud openfeign header" />
-    <option name="LAST_COMMIT_MESSAGE" value="0421 cloud openfeign header" />
+    <MESSAGE value="0421 cloud micrometer" />
+    <option name="LAST_COMMIT_MESSAGE" value="0421 cloud micrometer" />
   </component>
   <component name="XSLT-Support.FileAssociations.UIState">
     <expand />

+ 5 - 0
springcloud-demo/eureka-client-caller-demo/pom.xml

@@ -74,6 +74,11 @@
             <artifactId>zipkin-reporter-brave</artifactId>
         </dependency>
 
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-actuator</artifactId>
+        </dependency>
+
         <dependency>
             <groupId>org.springframework.boot</groupId>
             <artifactId>spring-boot-starter-test</artifactId>

+ 5 - 0
springcloud-demo/eureka-client-supplier-demo/pom.xml

@@ -59,6 +59,11 @@
             <artifactId>zipkin-reporter-brave</artifactId>
         </dependency>
 
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-actuator</artifactId>
+        </dependency>
+
         <dependency>
             <groupId>cn.hutool</groupId>
             <artifactId>hutool-all</artifactId>