2020-03-17 01:31:15 +00:00
|
|
|
|
server.port=9276
|
|
|
|
|
# 根据自身环境修改
|
|
|
|
|
server.tomcat.basedir=./basedir
|
|
|
|
|
# 多个项目放在nginx下同个端口,通过该配置区分
|
2020-04-09 10:20:02 +00:00
|
|
|
|
server.servlet.context-path=/dispose
|
2020-03-17 01:31:15 +00:00
|
|
|
|
# 配置数据源
|
2020-08-13 01:18:38 +00:00
|
|
|
|
spring.datasource.url=jdbc:mysql://10.88.77.65:33061/dispose_hx?serverTimezone=Asia/Shanghai&zeroDateTimeBehavior\
|
2020-05-09 10:09:06 +00:00
|
|
|
|
=convertToNull&useUnicode=true&characterEncoding=utf8&allowMultiQueries=true
|
2020-03-17 01:31:15 +00:00
|
|
|
|
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
2020-08-13 01:18:38 +00:00
|
|
|
|
spring.datasource.username=root
|
|
|
|
|
spring.datasource.password=h0K0_8u
|
2020-03-17 01:31:15 +00:00
|
|
|
|
# 配置连接池
|
|
|
|
|
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
|
2020-05-09 10:09:06 +00:00
|
|
|
|
mybatis.type-aliases-package=com.dispose.pojo.entity
|
2020-07-30 12:11:18 +00:00
|
|
|
|
mybatis.configuration.default-enum-type-handler=com.dispose.common.CommonEnumHandler
|
2020-03-17 01:31:15 +00:00
|
|
|
|
#config log
|
2020-08-14 01:42:56 +00:00
|
|
|
|
logging.config=file:config/logback.xml
|
2020-03-17 01:31:15 +00:00
|
|
|
|
#config tomcat
|
|
|
|
|
server.tomcat.max-threads=128
|
2020-04-17 12:38:41 +00:00
|
|
|
|
#Json sort
|
|
|
|
|
spring.jackson.mapper.sort-properties-alphabetically=true
|
2020-03-17 01:31:15 +00:00
|
|
|
|
#====custom config,begin with phoenix====
|
|
|
|
|
#test
|
|
|
|
|
phoenix.system-name=phoenix framework
|
|
|
|
|
#config the swagger api switch true:可访问;false:不可访问
|
|
|
|
|
phoenix.swagger-switch=true
|
2020-04-08 07:06:45 +00:00
|
|
|
|
#config which client to use in redis,
|
|
|
|
|
#jedis or redisson-sentinel,redisson-single
|
|
|
|
|
phoenix.redis.type=redisson-single
|
2020-03-17 01:31:15 +00:00
|
|
|
|
#config redis info
|
|
|
|
|
#jedis config example>redis://:dfu56li_jdo8pd@172.28.72.111:7379/0,多个用逗号分隔
|
|
|
|
|
#redisson sentinel config example>redis://172.28.72.104:28379,redis://172.28.72.124:28380,redis://172.28.72.124:28381
|
2020-04-08 07:06:45 +00:00
|
|
|
|
#redisson single config example>redis://172.28.72.104:8380
|
|
|
|
|
phoenix.redis-server=redis://172.28.72.104:8380
|
2020-03-17 01:31:15 +00:00
|
|
|
|
phoenix.redis-redisson-sentinel-master-name=mymaster
|
|
|
|
|
phoenix.redis-redisson-pwd=cmcc2019
|
|
|
|
|
#config request dec switch,true=dec,false=plain do nothing
|
|
|
|
|
phoenix.request-dec-switch=false
|
|
|
|
|
#config response enc switch,true=enc,false=plain do nothing
|
|
|
|
|
phoenix.response-enc-switch=false
|
|
|
|
|
#config aes 128 key,用于上述body的加解密
|
|
|
|
|
phoenix.aes-key=Wt4EJu6Rrq5udd/42bNpCQ==
|
2020-08-13 01:18:38 +00:00
|
|
|
|
#====custom config,begin with phoenix====
|