|
@@ -8,34 +8,14 @@ spring:
|
|
|
spec: expireAfterWrite=30s
|
|
|
datasource:
|
|
|
driver-class-name: com.mysql.jdbc.Driver
|
|
|
-# url: jdbc:mysql://101.37.175.111:3306/crowd-test-service?useSSL=false&useUnicode=yes&characterEncoding=UTF-8
|
|
|
-# username: mooctest
|
|
|
-# password: secr3t!
|
|
|
- # Keep the connection alive if idle for a long time (needed in production)
|
|
|
testWhileIdle: true
|
|
|
validationQuery: SELECT 1
|
|
|
- # Show or not log for each sql query
|
|
|
jpa:
|
|
|
show-sql: true
|
|
|
- # Hibernate ddl auto (create, create-drop, update)
|
|
|
hibernate:
|
|
|
ddl-auto: validate
|
|
|
- #hbm2ddl.auto: update
|
|
|
- # Naming strategy
|
|
|
naming-strategy: org.hibernate.cfg.ImprovedNamingStrategy
|
|
|
- # The SQL dialect makes Hibernate generate better SQL for the chosen database
|
|
|
properties.hibernate.dialect: org.hibernate.dialect.MySQL5Dialect
|
|
|
-# redis:
|
|
|
-# host: 114.55.91.27
|
|
|
-# pool: 6379
|
|
|
-# password: '#03#05@ise@mooctest'
|
|
|
-# jedis:
|
|
|
-# pool:
|
|
|
-# max-active: 8
|
|
|
-# max-idle: 8
|
|
|
-# max-wait: -1
|
|
|
-# min-idle: 0
|
|
|
-# database: 6
|
|
|
servlet:
|
|
|
multipart:
|
|
|
enabled: true
|
|
@@ -46,15 +26,10 @@ feature-switch:
|
|
|
default:
|
|
|
role: generalUser
|
|
|
oss:
|
|
|
-# accessKeyId: LTAI4Frsvbz6G8RKb9dWDPUz
|
|
|
-# accessKeySecret: xdxGJuMlrEMMP3ZKY6n0WyZZNZAqrE
|
|
|
accessKeyId: LTAI4FdrT3HsfdR5edBVN7ws
|
|
|
accessKeySecret: yroxrpm46DzTyzHrLBZzS3MRNIicP6
|
|
|
endPoint: oss-cn-hangzhou.aliyuncs.com
|
|
|
bucketName: mooctest-crowd-service
|
|
|
-#user:
|
|
|
-# service:
|
|
|
-# baseUrl: http://111.231.143.6:8081
|
|
|
|
|
|
cache:
|
|
|
expire:
|
|
@@ -96,7 +71,7 @@ website:
|
|
|
spring:
|
|
|
profiles: dev-localhost
|
|
|
datasource:
|
|
|
- url: jdbc:mysql://101.37.175.111:3306/crowd-test-service-online?useSSL=false&useUnicode=yes&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
|
|
+ url: jdbc:mysql://101.37.175.111:3306/crowd-test-service?useSSL=false&useUnicode=yes&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
|
|
username: mooctest
|
|
|
password: secr3t!
|
|
|
redis:
|