Kaynağa Gözat

更新配置文件

reghao 11 ay önce
ebeveyn
işleme
0f385bcb9f
22 değiştirilmiş dosya ile 54 ekleme ve 69 silme
  1. 0 4
      account/account-service/src/main/resources/application-dev.yml
  2. 0 4
      account/account-service/src/main/resources/application-test.yml
  3. 7 1
      account/account-service/src/main/resources/application.yml
  4. 0 4
      content/content-service/src/main/resources/application-dev.yml
  5. 0 4
      content/content-service/src/main/resources/application-test.yml
  6. 7 1
      content/content-service/src/main/resources/application.yml
  7. 0 4
      data/data-service/src/main/resources/application-dev.yml
  8. 0 4
      data/data-service/src/main/resources/application-test.yml
  9. 7 1
      data/data-service/src/main/resources/application.yml
  10. 5 6
      eureka/eureka-server/src/main/resources/application.yml
  11. 0 4
      file/file-service/src/main/resources/application-dev.yml
  12. 0 4
      file/file-service/src/main/resources/application-test.yml
  13. 7 1
      file/file-service/src/main/resources/application.yml
  14. 0 4
      gateway/src/main/resources/application-dev.yml
  15. 0 4
      gateway/src/main/resources/application-test.yml
  16. 7 1
      gateway/src/main/resources/application.yml
  17. 0 4
      message/message-service/src/main/resources/application-dev.yml
  18. 0 4
      message/message-service/src/main/resources/application-test.yml
  19. 7 1
      message/message-service/src/main/resources/application.yml
  20. 0 4
      user/user-service/src/main/resources/application-dev.yml
  21. 0 4
      user/user-service/src/main/resources/application-test.yml
  22. 7 1
      user/user-service/src/main/resources/application.yml

+ 0 - 4
account/account-service/src/main/resources/application-dev.yml

@@ -25,10 +25,6 @@ spring:
     username: dev
     password: Dev@123456
 eureka:
-  instance:
-    prefer-ip-address: true
   client:
-    register-with-eureka: true
-    fetch-registry: true
     service-url:
       defaultZone: http://localhost:6060/eureka/

+ 0 - 4
account/account-service/src/main/resources/application-test.yml

@@ -25,10 +25,6 @@ spring:
     username: test
     password: Test@123456
 eureka:
-  instance:
-    prefer-ip-address: true
   client:
-    register-with-eureka: true
-    fetch-registry: true
     service-url:
       defaultZone: http://192.168.0.210:6060/eureka/

+ 7 - 1
account/account-service/src/main/resources/application.yml

@@ -65,4 +65,10 @@ mybatis:
     map-underscore-to-camel-case: true
 #    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
   mapper-locations: classpath*:mapper/**/**.xml
-  type-aliases-package: cn.reghao.tnb.account.app.model.po
+  type-aliases-package: cn.reghao.tnb.account.app.model.po
+eureka:
+  instance:
+    prefer-ip-address: true
+  client:
+    register-with-eureka: true
+    fetch-registry: true

+ 0 - 4
content/content-service/src/main/resources/application-dev.yml

@@ -47,10 +47,6 @@ spring:
         username: dev
         password: Dev@123456
 eureka:
-  instance:
-    prefer-ip-address: true
   client:
-    register-with-eureka: true
-    fetch-registry: true
     service-url:
       defaultZone: http://localhost:6060/eureka/

+ 0 - 4
content/content-service/src/main/resources/application-test.yml

@@ -47,10 +47,6 @@ spring:
         username: test
         password: Test@123456
 eureka:
-  instance:
-    prefer-ip-address: true
   client:
-    register-with-eureka: true
-    fetch-registry: true
     service-url:
       defaultZone: http://192.168.0.210:6060/eureka/

+ 7 - 1
content/content-service/src/main/resources/application.yml

@@ -38,4 +38,10 @@ management:
         include: "*"
   metrics:
     tags:
-      application: ${spring.application.name}
+      application: ${spring.application.name}
+eureka:
+  instance:
+    prefer-ip-address: true
+  client:
+    register-with-eureka: true
+    fetch-registry: true

+ 0 - 4
data/data-service/src/main/resources/application-dev.yml

@@ -26,10 +26,6 @@ spring:
     username: dev
     password: Dev@123456
 eureka:
-  instance:
-    prefer-ip-address: true
   client:
-    register-with-eureka: true
-    fetch-registry: true
     service-url:
       defaultZone: http://localhost:6060/eureka/

+ 0 - 4
data/data-service/src/main/resources/application-test.yml

@@ -19,10 +19,6 @@ spring:
     username: test
     password: Test@123456
 eureka:
-  instance:
-    prefer-ip-address: true
   client:
-    register-with-eureka: true
-    fetch-registry: true
     service-url:
       defaultZone: http://192.168.0.210:6060/eureka/

+ 7 - 1
data/data-service/src/main/resources/application.yml

@@ -4,4 +4,10 @@ spring:
   application:
     name: data-service
   profiles:
-    active: @profile.active@
+    active: @profile.active@
+eureka:
+  instance:
+    prefer-ip-address: true
+  client:
+    register-with-eureka: true
+    fetch-registry: true

+ 5 - 6
eureka/eureka-server/src/main/resources/application.yml

@@ -14,11 +14,10 @@ spring:
 eureka:
   instance:
     prefer-ip-address: true
-    #hostname: localhost
-  client:
-    register-with-eureka: false
-    fetch-registry: false
-    service-url:
-      defaultZone: http://localhost:${server.port}/eureka
+#  client:
+#    register-with-eureka: false
+#    fetch-registry: false
+#    service-url:
+#      defaultZone: http://localhost:${server.port}/eureka
   server:
     enable-self-preservation: false

+ 0 - 4
file/file-service/src/main/resources/application-dev.yml

@@ -19,10 +19,6 @@ spring:
     username: dev
     password: Dev@123456
 eureka:
-  instance:
-    prefer-ip-address: true
   client:
-    register-with-eureka: true
-    fetch-registry: true
     service-url:
       defaultZone: http://localhost:6060/eureka/

+ 0 - 4
file/file-service/src/main/resources/application-test.yml

@@ -19,10 +19,6 @@ spring:
     username: test
     password: Test@123456
 eureka:
-  instance:
-    prefer-ip-address: true
   client:
-    register-with-eureka: true
-    fetch-registry: true
     service-url:
       defaultZone: http://192.168.0.210:6060/eureka/

+ 7 - 1
file/file-service/src/main/resources/application.yml

@@ -42,4 +42,10 @@ mybatis:
 app:
   siteAddress: http://tnb.reghao.cn
   avatarChannelCode: 104
-  ossType: 1
+  ossType: 1
+eureka:
+  instance:
+    prefer-ip-address: true
+  client:
+    register-with-eureka: true
+    fetch-registry: true

+ 0 - 4
gateway/src/main/resources/application-dev.yml

@@ -12,10 +12,6 @@ spring:
     discovery:
       enabled: true
 eureka:
-  instance:
-    prefer-ip-address: true
   client:
-    register-with-eureka: true
-    fetch-registry: true
     service-url:
       defaultZone: http://localhost:6060/eureka/

+ 0 - 4
gateway/src/main/resources/application-test.yml

@@ -20,10 +20,6 @@ spring:
     discovery:
       enabled: true
 eureka:
-  instance:
-    prefer-ip-address: true
   client:
-    register-with-eureka: true
-    fetch-registry: true
     service-url:
       defaultZone: http://192.168.0.210:6060/eureka/

+ 7 - 1
gateway/src/main/resources/application.yml

@@ -115,4 +115,10 @@ spring:
 #          '[/**]':
 #            allowedOrigins: "*"
 #            allowedMethods: "*"
-#            allowedHeaders: "*"
+#            allowedHeaders: "*"
+eureka:
+  instance:
+    prefer-ip-address: true
+  client:
+    register-with-eureka: true
+    fetch-registry: true

+ 0 - 4
message/message-service/src/main/resources/application-dev.yml

@@ -20,10 +20,6 @@ spring:
     username: dev
     password: Dev@123456
 eureka:
-  instance:
-    prefer-ip-address: true
   client:
-    register-with-eureka: true
-    fetch-registry: true
     service-url:
       defaultZone: http://localhost:6060/eureka/

+ 0 - 4
message/message-service/src/main/resources/application-test.yml

@@ -20,10 +20,6 @@ spring:
     username: test
     password: Test@123456
 eureka:
-  instance:
-    prefer-ip-address: true
   client:
-    register-with-eureka: true
-    fetch-registry: true
     service-url:
       defaultZone: http://192.168.0.210:6060/eureka/

+ 7 - 1
message/message-service/src/main/resources/application.yml

@@ -20,4 +20,10 @@ mybatis:
   configuration:
     map-underscore-to-camel-case: true
   mapper-locations: classpath*:mapper/**/**.xml
-  type-aliases-package: cn.reghao.tnb.account.app.model.po
+  type-aliases-package: cn.reghao.tnb.account.app.model.po
+eureka:
+  instance:
+    prefer-ip-address: true
+  client:
+    register-with-eureka: true
+    fetch-registry: true

+ 0 - 4
user/user-service/src/main/resources/application-dev.yml

@@ -19,10 +19,6 @@ spring:
     username: dev
     password: Dev@123456
 eureka:
-  instance:
-    prefer-ip-address: true
   client:
-    register-with-eureka: true
-    fetch-registry: true
     service-url:
       defaultZone: http://localhost:6060/eureka/

+ 0 - 4
user/user-service/src/main/resources/application-test.yml

@@ -19,10 +19,6 @@ spring:
     username: test
     password: Test@123456
 eureka:
-  instance:
-    prefer-ip-address: true
   client:
-    register-with-eureka: true
-    fetch-registry: true
     service-url:
       defaultZone: http://192.168.0.210:6060/eureka/

+ 7 - 1
user/user-service/src/main/resources/application.yml

@@ -34,4 +34,10 @@ mybatis:
   configuration:
     map-underscore-to-camel-case: true
   mapper-locations: classpath*:mapper/**/**.xml
-  type-aliases-package: cn.reghao.tnb.user.app.model.po
+  type-aliases-package: cn.reghao.tnb.user.app.model.po
+eureka:
+  instance:
+    prefer-ip-address: true
+  client:
+    register-with-eureka: true
+    fetch-registry: true