|
@ -20,7 +20,9 @@ spring:
|
|
|
test-while-idle: true #指明连接是否被空闲连接回收器(如果有)进行检验,如果检测失败,则连接将被从池中去除
|
|
|
min-evictable-idle-time-millis: 3600000 #连接池中连接,在时间段内一直空闲,被逐出连接池的时间(1000*60*60),以毫秒为单位
|
|
|
time-between-eviction-runs-millis: 300000 #在空闲连接回收器线程运行期间休眠的时间值,以毫秒为单位,一般比minEvictableIdleTimeMillis小
|
|
|
|
|
|
url: jdbc:mysql://172.19.103.77/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true
|
|
|
username: root
|
|
|
password: 123456
|
|
|
|
|
|
hibernate:
|
|
|
dialect: org.hibernate.dialect.MySQL5Dialect
|
|
@ -30,19 +32,3 @@ hibernate:
|
|
|
physical_naming_strategy: org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy #springJPA使用驼峰式(hibernate5以上使用)
|
|
|
implicit_naming_strategy: org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyHbmImpl
|
|
|
|
|
|
|
|
|
---
|
|
|
spring:
|
|
|
profiles: jwdev
|
|
|
datasource:
|
|
|
url: jdbc:mysql://172.19.103.77/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true
|
|
|
username: root
|
|
|
password: 123456
|
|
|
|
|
|
---
|
|
|
spring:
|
|
|
profiles: jwtest
|
|
|
datasource:
|
|
|
url: jdbc:mysql://172.19.103.77/jw2?useUnicode:true&characterEncoding=utf-8&autoReconnect=true
|
|
|
username: root
|
|
|
password: 123456
|