2020-10-22 03:41:14 +00:00
|
|
|
|
server.port=9276
|
|
|
|
|
# 根据自身环境修改
|
|
|
|
|
server.tomcat.basedir=./basedir
|
|
|
|
|
# 多个项目放在nginx下同个端口,通过该配置区分
|
|
|
|
|
server.servlet.context-path=/dispose
|
|
|
|
|
# 配置数据源
|
|
|
|
|
spring.datasource.url=jdbc:mysql://10.88.77\
|
2021-04-25 03:38:40 +00:00
|
|
|
|
.65:33061/dispose_cl_areacode_v2?serverTimezone=Asia/Shanghai&zeroDateTimeBehavior\
|
2020-10-22 03:41:14 +00:00
|
|
|
|
=convertToNull&useUnicode=true&characterEncoding=utf8&allowMultiQueries=true
|
|
|
|
|
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
|
|
|
|
spring.datasource.username=root
|
|
|
|
|
spring.datasource.password=h0K0_8u
|
|
|
|
|
|
|
|
|
|
#spring.datasource.url=jdbc:mysql://172.28.72.118:33061/dispose_hx_v21?serverTimezone=Asia/Shanghai&zeroDateTimeBehavior\
|
|
|
|
|
# =convertToNull&useUnicode=true
|
|
|
|
|
#spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
|
|
|
|
#spring.datasource.username=phoenix
|
|
|
|
|
#spring.datasource.password=Hy@rfph32
|
|
|
|
|
|
|
|
|
|
# 配置连接池
|
|
|
|
|
spring.datasource.type=org.apache.commons.dbcp2.BasicDataSource
|
|
|
|
|
spring.datasource.dbcp2.max-total=128
|
|
|
|
|
spring.datasource.dbcp2.max-wait-millis=10000
|
|
|
|
|
spring.datasource.dbcp2.max-idle=32
|
|
|
|
|
spring.datasource.dbcp2.min-idle=8
|
|
|
|
|
spring.datasource.dbcp2.initial-size=8
|
|
|
|
|
spring.datasource.dbcp2.validation-query=SELECT 1
|
|
|
|
|
spring.datasource.dbcp2.test-while-idle=true
|
|
|
|
|
spring.datasource.dbcp2.connection-properties=characterEncoding=utf8
|
|
|
|
|
#mybatis 配置
|
|
|
|
|
# 下划线转驼峰 将带有下划线的表字段映射为驼峰格式的实体类属性
|
|
|
|
|
#mybatis.configuration.map-underscore-to-camel-case: true
|
|
|
|
|
mybatis.mapper-locations=classpath*:mappers/*.xml
|
|
|
|
|
mybatis.type-aliases-package=com.dispose.pojo.entity
|
|
|
|
|
mybatis.configuration.default-enum-type-handler=com.dispose.common.CommonEnumHandler
|
|
|
|
|
#config log
|
|
|
|
|
logging.config=file:config/logback.xml
|
|
|
|
|
#config tomcat
|
|
|
|
|
server.tomcat.max-threads=128
|
|
|
|
|
#Json sort
|
|
|
|
|
spring.jackson.mapper.sort-properties-alphabetically=true
|
|
|
|
|
#Json strict type
|
|
|
|
|
spring.jackson.mapper.allow-coercion-of-scalars=false
|
|
|
|
|
#====custom config,begin with phoenix====
|
|
|
|
|
#test
|
|
|
|
|
phoenix.system-name=phoenix framework
|
|
|
|
|
#====custom config,begin with phoenix====
|