server:
|
port: 9011
|
tomcat:
|
uri-encoding: UTF-8
|
spring:
|
main:
|
allow-bean-definition-overriding: true
|
http:
|
encoding:
|
force: true
|
charset: UTF-8
|
enabled: true
|
datasource:
|
# 测试
|
# url: jdbc:mysql://172.16.16.17:3306/taoke_autopay?serverTimezone=GMT%2B8
|
# username: root
|
# password: Yeshi2016@
|
# XCP
|
url: jdbc:mysql://rm-f8z0j143g151fp995.mysql.rds.aliyuncs.com:3306/taoke_autopay?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8
|
username: root
|
password: xcp123123@
|
|
driver-class-name: com.mysql.jdbc.Driver
|
type: com.alibaba.druid.pool.DruidDataSource
|
druid:
|
initial-size: 8
|
min-idle: 1
|
max-active: 20
|
max-wait: 60000
|
time-between-eviction-runsMillis: 60000
|
min-evictable-idle-timeMillis: 300000
|
validation-query: select 'x' FROM DUAL
|
test-while-idle: true
|
test-on-borrow: false
|
test-on-return: false
|
pool-prepared-statements: true
|
max-open-prepared-statements: 20
|
max-pool-prepared-statement-per-connection-size: 20
|
filters: stat
|
connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
|
use-global-data-source-stat: true
|
cache:
|
type: ehcache
|
ehcache:
|
config: classpath:ehcache.xml
|
mybatis:
|
mapper-locations: classpath:mapper/*.xml
|
type-aliases-package: com.taoke.autopay.entity
|
configuration:
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|