Browse Source

添加spring admin 支持

tuonina 6 years ago
parent
commit
a9439c9e5e

+ 1 - 0
build.gradle

@@ -55,6 +55,7 @@ subprojects {
     }
 
     repositories {
+        maven { url 'https://maven.aliyun.com/repository/public' }
         mavenCentral()
         jcenter()
         maven {

+ 1 - 1
eureka-web/src/main/resources/application-dev.yml

@@ -2,7 +2,7 @@ spring:
   datasource:
     password: envir
     username: envir
-    url: jdbc:mysql://192.168.1.202:3307/sys_config?useUnicode=true&characterEncoding=utf-8&useSSL=false&zeroDateTimeBehavior=convertToNull
+    url: jdbc:mysql://120..168.1.202:3307/sys_config?useUnicode=true&characterEncoding=utf-8&useSSL=false&zeroDateTimeBehavior=convertToNull
 
   session:
     store-type: redis

+ 1 - 1
eureka-web/src/main/resources/application.yml

@@ -43,7 +43,7 @@ eureka:
     prefer-ip-address: true
     lease-renewal-interval-in-seconds: 15
     lease-expiration-duration-in-seconds: 32
-    ip-address: 192.168.1.133
+    ip-address: 192.168.1.38
     metadata-map:
       startup: ${random.int}
       tags: config

+ 6 - 1
eureka-web/src/main/resources/bootstrap.yml

@@ -6,7 +6,7 @@ spring:
   application:
     name: config
   profiles:
-    active: dev,jdbc
+    active: prod
   cloud:
     refresh:
       refreshable: none   # 解决循环依赖的问题
@@ -16,6 +16,11 @@ spring:
         prefix: /config
         jdbc:
           sql: SELECT `key`, `value` from properties where application=? and profile=? and label=?
+        git:
+          basedir: ./config
+          username: tn
+          password: 123456
+          uri: https://git.gygxzc.cn/Envir_Group/Config_Resp.git
       label: master
     bus:
       trace: