|
@@ -17,27 +17,29 @@ eureka:
|
|
client:
|
|
client:
|
|
serviceUrl:
|
|
serviceUrl:
|
|
defaultZone: http://admin:admin123@localhost:8761/eureka/eureka/
|
|
defaultZone: http://admin:admin123@localhost:8761/eureka/eureka/
|
|
- instance:
|
|
|
|
|
|
+ instance:
|
|
lease-renewal-interval-in-seconds: 5
|
|
lease-renewal-interval-in-seconds: 5
|
|
|
|
|
|
spring:
|
|
spring:
|
|
application:
|
|
application:
|
|
name: student-server
|
|
name: student-server
|
|
-
|
|
|
|
|
|
+
|
|
servlet:
|
|
servlet:
|
|
multipart:
|
|
multipart:
|
|
# 最大支持文件大小
|
|
# 最大支持文件大小
|
|
- max-file-size: 50MB
|
|
|
|
|
|
+ max-file-size: 150MB
|
|
# 最大支持请求大小
|
|
# 最大支持请求大小
|
|
- max-request-size: 50MB
|
|
|
|
-
|
|
|
|
|
|
+ max-request-size: 150MB
|
|
|
|
+
|
|
datasource:
|
|
datasource:
|
|
name: test
|
|
name: test
|
|
- url: jdbc:mysql://47.99.212.176:3306/mec_dev?useUnicode=true&characterEncoding=UTF8&serverTimezone=Asia/Shanghai
|
|
|
|
- username: mec_dev
|
|
|
|
- password: mec_dev
|
|
|
|
|
|
+ url: jdbc:mysql://47.99.212.176:3306/mec_data_online?useUnicode=true&characterEncoding=UTF8&serverTimezone=Asia/Shanghai&allowMultiQueries=true
|
|
|
|
+ username: dayaData
|
|
|
|
+ password: dayaDataOnline2019
|
|
# 使用druid数据源
|
|
# 使用druid数据源
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
|
|
+ druid:
|
|
|
|
+ connection-init-sqls: SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
filters: stat
|
|
filters: stat
|
|
maxActive: 20
|
|
maxActive: 20
|
|
@@ -52,11 +54,11 @@ spring:
|
|
testOnReturn: false
|
|
testOnReturn: false
|
|
poolPreparedStatements: true
|
|
poolPreparedStatements: true
|
|
maxOpenPreparedStatements: 20
|
|
maxOpenPreparedStatements: 20
|
|
-
|
|
|
|
|
|
+
|
|
redis:
|
|
redis:
|
|
- host: 47.99.212.176
|
|
|
|
|
|
+ host: 127.0.0.1
|
|
port: 6379
|
|
port: 6379
|
|
- password:
|
|
|
|
|
|
+ password: 123456
|
|
database: 0
|
|
database: 0
|
|
#连接超时时间(毫秒)
|
|
#连接超时时间(毫秒)
|
|
timeout: 10000
|
|
timeout: 10000
|
|
@@ -71,14 +73,14 @@ spring:
|
|
min-idle: 0
|
|
min-idle: 0
|
|
|
|
|
|
mybatis:
|
|
mybatis:
|
|
- mapperLocations: classpath:config/mybatis/*.xml
|
|
|
|
- # configuration:
|
|
|
|
- # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
|
|
|
|
+ mapperLocations: classpath:config/mybatis/*.xml
|
|
|
|
+ configuration:
|
|
|
|
+ log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
|
|
|
|
swagger:
|
|
swagger:
|
|
base-package: com.ym.mec.student.controller
|
|
base-package: com.ym.mec.student.controller
|
|
-
|
|
|
|
-##认证
|
|
|
|
|
|
+
|
|
|
|
+##认证
|
|
security:
|
|
security:
|
|
oauth2:
|
|
oauth2:
|
|
client:
|
|
client:
|
|
@@ -86,7 +88,7 @@ security:
|
|
client-secret: student
|
|
client-secret: student
|
|
resource:
|
|
resource:
|
|
token-info-uri: http://localhost:8001/oauth/check_token
|
|
token-info-uri: http://localhost:8001/oauth/check_token
|
|
-
|
|
|
|
|
|
+
|
|
#spring boot admin 相关配置
|
|
#spring boot admin 相关配置
|
|
management:
|
|
management:
|
|
endpoints:
|
|
endpoints:
|
|
@@ -96,20 +98,44 @@ management:
|
|
endpoint:
|
|
endpoint:
|
|
health:
|
|
health:
|
|
show-details: ALWAYS
|
|
show-details: ALWAYS
|
|
-
|
|
|
|
|
|
|
|
-ribbon:
|
|
|
|
- ReadTimeout: 60000
|
|
|
|
- ConnectTimeout: 60000
|
|
|
|
-
|
|
|
|
|
|
+ribbon:
|
|
|
|
+ ReadTimeout: 60000
|
|
|
|
+ ConnectTimeout: 60000
|
|
|
|
+
|
|
|
|
+logging:
|
|
|
|
+ level:
|
|
|
|
+ com.ym.mec.auth.api.client.SysUserFeignService: DEBUG
|
|
|
|
+ com.ym.mec.thirdparty.yqpay.YqPayFeignService: DEBUG
|
|
|
|
+
|
|
|
|
+message:
|
|
|
|
+ debugMode: true
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+wechat:
|
|
|
|
+ mpAppId: wxcf8e8b33a9477845
|
|
|
|
+ mpAppSecret: 1286452b9c68b13325dece7cdf892645
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+eseal:
|
|
|
|
+ tsign:
|
|
|
|
+ projectid: 4438776254
|
|
|
|
+ projectSecret: a94cf63d6361084d232f345d71321691
|
|
|
|
+ apisUrl: http://smlitsm.tsign.cn:8080/tgmonitor/rest/app!getAPIInfo2
|
|
|
|
+
|
|
push:
|
|
push:
|
|
jiguang:
|
|
jiguang:
|
|
reqURL: https://api.jpush.cn/v3/push
|
|
reqURL: https://api.jpush.cn/v3/push
|
|
- appKey: 0e7422e1d6e73637e678716a
|
|
|
|
- masterSecret: c2361016604eab56ab2db2ac
|
|
|
|
|
|
+ appKey:
|
|
|
|
+ student: 0e7422e1d6e73637e678716a
|
|
|
|
+ teacher: 7e0282ca92c12c8c45a93bb3
|
|
|
|
+ system: a003c997b1add94aa8d6caf9
|
|
|
|
+ masterSecret:
|
|
|
|
+ student: c2361016604eab56ab2db2ac
|
|
|
|
+ teacher: d47430e2f4755ef5dc050ac5
|
|
|
|
+ system: c281fe6a21acf2e8a9f9d628
|
|
apns_production: false
|
|
apns_production: false
|
|
-
|
|
|
|
-logging:
|
|
|
|
- level:
|
|
|
|
- com.ym.mec.auth.api.client.SysUserFeignService: DEBUG
|
|
|
|
-
|
|
|
|
|
|
+auth:
|
|
|
|
+ sysconfig:
|
|
|
|
+ tenantId: 43
|