增加开发配置

parent 90206ab0
spring:
datasource:
# 数据源基本配置
username: root
password: 123
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://192.168.2.120:3306/mybatis
type: com.alibaba.druid.pool.DruidDataSource
# 数据源其他配置
initialSize: 5
minIdle: 5
maxActive: 20
maxWait: 60000
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000
validationQuery: SELECT 1 FROM DUAL
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
poolPreparedStatements: true
# 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
filters: stat,wall,log4j
maxPoolPreparedStatementPerConnectionSize: 20
useGlobalDataSourceStat: true
connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=500
mybatis:
# 指定全局配置文件位置
config-location: classpath:mybatis/mybatis-config.xml
# 指定sql映射文件位置
mapper-locations: classpath:mybatis/mapper/*.xml
service-rest:
shellPaht: "/usr/local/shell/"
# 调用运行监控微服务shell脚本
reportTomcatName: "reportTomcat.sh"
LogsTomcatName: "tomcatLogs.sh"
ThreadPool:
#核心线程数
corePoolSize: 20
#最大线程数
maxPoolSize: 200
#任务队列容量(阻塞队列)
queueCapacity: 10
......@@ -6,7 +6,7 @@ server.tomcat.uri-encoding=UTF-8
ServiceReportcron = "0/2 * * * * *";
logging.level.com.cc=debug
#spring.profiles.active=dev
spring.profiles.active=pro
#logging.path=
# \u4E0D\u6307\u5B9A\u8DEF\u5F84\u5728\u5F53\u524D\u9879\u76EE\u4E0B\u751F\u6210springboot.log\u65E5\u5FD7
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment