|
@@ -9,7 +9,7 @@ eureka:
|
|
|
spring:
|
|
|
application:
|
|
|
name: education-server
|
|
|
-
|
|
|
+
|
|
|
datasource:
|
|
|
name: test
|
|
|
url: jdbc:mysql://47.99.212.176:3306/mec_dev?useUnicode=true&characterEncoding=UTF8&serverTimezone=Asia/Shanghai
|
|
@@ -31,11 +31,11 @@ spring:
|
|
|
testOnReturn: false
|
|
|
poolPreparedStatements: true
|
|
|
maxOpenPreparedStatements: 20
|
|
|
-
|
|
|
+
|
|
|
redis:
|
|
|
host: 47.99.212.176
|
|
|
port: 6379
|
|
|
- password:
|
|
|
+ password:
|
|
|
database: 0
|
|
|
#连接超时时间(毫秒)
|
|
|
timeout: 10000
|
|
@@ -50,12 +50,16 @@ spring:
|
|
|
min-idle: 0
|
|
|
|
|
|
mybatis:
|
|
|
- mapperLocations: classpath:config/mybatis/*.xml
|
|
|
-
|
|
|
+ mapperLocations: classpath:config/mybatis/*.xml
|
|
|
+mybatis-plus:
|
|
|
+ mapper-locations: classpath*:config/mybatis/*.xml
|
|
|
+ configuration:
|
|
|
+ log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
|
+
|
|
|
swagger:
|
|
|
base-package: com.ym.mec.education.controller
|
|
|
-
|
|
|
-##认证
|
|
|
+
|
|
|
+##认证
|
|
|
security:
|
|
|
oauth2:
|
|
|
client:
|
|
@@ -63,7 +67,7 @@ security:
|
|
|
client-secret: app
|
|
|
resource:
|
|
|
token-info-uri: http://localhost:8001/oauth/check_token
|
|
|
-
|
|
|
+
|
|
|
#spring boot admin 相关配置
|
|
|
management:
|
|
|
endpoints:
|
|
@@ -73,7 +77,7 @@ management:
|
|
|
endpoint:
|
|
|
health:
|
|
|
show-details: ALWAYS
|
|
|
-
|
|
|
+
|
|
|
feign:
|
|
|
hystrix:
|
|
|
- enabled: true
|
|
|
+ enabled: true
|