深圳文化交易所java接口实现
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.6 KiB

# logback日志操作
logging.config=classpath:logback-spring.xml
logging.path=./logs/
# 服务器信息
server.port=9090
# 服务请求上下文
#server.servlet.context-path=/chapi
mybatis.mapper-locations=classpath*:/mapper/szwh/*.xml
mybatis.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl
# 开启调试sql语句
logging.level.cn.chjyj.szwh.mapper=DEBUG
#指定redis信息 (如 host, ip, password)
spring.redis.host=localhost
spring.redis.port=6379
#没有密码可以不用配置这个
#spring.redis.password=123456
#spring.datasource.validationQuery=SELECT 'x'
spring.datasource.validationQuery=SELECT 1 FROM DUAL
# 连接池配置
spring.redis.jedis.pool.enabled=true
# 最大连接
spring.redis.jedis.pool.max-active=8
spring.redis.jedis.pool.max-wait=-1
#缓存处理
spring.cache.type=simple
#压缩设置
server.compression.enabled=true
server.compression.min-response-size=10
server.compression.excluded-user-agents=gozilla,traviata
server.compression.mime-types=application/json,application/xml,text/html,text/xml
# 暂使用单机模式进行任务管理
spring.quartz.scheduler-name=szwhQuartz
spring.quartz.job-store-type=memory
# quartz 自动启动
spring.quartz.auto-startup=true
# 延迟5s启动
spring.quartz.startup-delay=5
# 应用关闭时候等待完成
spring.quartz.wait-for-jobs-to-complete-on-shutdown=true
# 覆盖已有 Job 的配置
spring.quartz.overwrite-existing-jobs=false
# 属性
spring.quartz.properties.org.quartz.threadPool.threadCount=5
spring.quartz.properties.org.quartz.threadPool.threadPriority=5
spring.quartz.properties.org.quartz.threadPool.class=org.quartz.simpl.SimpleThreadPool