hexiao 1 year ago
parent
commit
8a48dafb57

+ 18 - 18
dc-account/src/main/resources/application.yml

@@ -6,29 +6,29 @@ log:
     file:
 #        path: C:\Users\89346\Desktop\filePath
 #        path: C:\workspace\logs
-        path: /home/dc/logs
+        path: /data/service/DC-SERVICE/dc/logs
         name: report.log
 datasource:
-    url: 124.70.58.209:1122/dc_test
+    url: 124.70.58.209:18806/dc
     #url: 10.199.100.13:3306/cap
-    username: admin
-    password: 106aD>>ql95K5S
+    username: root
+    password: 123.asd
 redis:
-    host: 127.0.0.1
-    port: 7001
-    password: 106@qwe123
-    
+    host: 124.71.171.71
+    port: 18879
+    password: tysfrz123
+
 ###############常用配置项###############
 spring:
     cloud:
-        loadbalancer: 
-            retry: 
+        loadbalancer:
+            retry:
                 enabled=true
     application:
         name: account
-    jmx: 
+    jmx:
         enabled: false
-    datasource: 
+    datasource:
         type: com.alibaba.druid.pool.DruidDataSource
         driverClassName: com.mysql.jdbc.Driver
         url: jdbc:mysql://${datasource.url}?characterEncoding=utf8&useSSL=false
@@ -50,21 +50,21 @@ spring:
         connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000  #通过connectProperties属性来打开mergeSql功能;慢SQL记录
         useGlobalDataSourceStat: true              #合并多个DruidDataSource的监控数据
     redis:
-        database: 0                      # Redis数据库索引(默认为0)
+        database: 14                      # Redis数据库索引(默认为0)
         host: ${redis.host}              # Redis服务器地址
         port: ${redis.port}              # Redis服务器连接端口
         password: ${redis.password}                     # Redis服务器连接密码(默认为空)
         timeout: 20000                   # 连接超时时间(毫秒)
-        pool: 
+        pool:
             max-active: -1               # 连接池最大连接数(使用负值表示没有限制)
             max-wait: -1                 # 连接池最大阻塞等待时间(使用负值表示没有限制)
             max-idle: 8                  # 连接池中的最大空闲连接
             min-idle: 0                  # 连接池中的最小空闲连接
 logging:
     config: classpath:logback-spring.xml
-    level:   
+    level:
         com.ozs.account.mapper: DEBUG
-    
+
 mybatis:
     configuration:
         mapUnderscoreToCamelCase: true
@@ -74,7 +74,7 @@ pagehelper:
     reasonable: true
     support-methods-arguments: true
     params: count=countSql
-                    
+
 ribbon:
     ReadTimeout: 600000
     ConnectTimeout: 600000
@@ -93,7 +93,7 @@ hystrix:
     command:
         default:
             execution:
-                timeout: 
+                timeout:
                     enabled: false
                 isolation:
                     thread:

+ 3 - 3
dc-account/src/main/resources/bootstrap.yml

@@ -1,13 +1,13 @@
 #server: localhost
 #port: 9876
-server: 124.70.58.209
+server: 124.71.171.71
 port: 9999
 #spring:
 #    cloud:
 #        config:
 #            profile: test
 #            label: feature-20180424
-#            discovery: 
+#            discovery:
 #                enabled: true
 #                serviceId: cap-config
 #            failFast: true
@@ -15,4 +15,4 @@ port: 9999
 eureka:
     client:
         serviceUrl:
-            defaultZone: http://${server}:${port}/eureka
+            defaultZone: http://${server}:${port}/eureka