Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
service-rest
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
常超
service-rest
Commits
9a38a3e6
Commit
9a38a3e6
authored
Nov 19, 2018
by
chang_chao@founder.com.cn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加开发配置
parent
90206ab0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
1 deletions
+44
-1
src/main/resources/application-dev.yml
+43
-0
src/main/resources/application.pro.yml
+0
-0
src/main/resources/application.properties
+1
-1
No files found.
src/main/resources/application-dev.yml
0 → 100644
View file @
9a38a3e6
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
src/main/resources/application.yml
→
src/main/resources/application.
pro.
yml
View file @
9a38a3e6
File moved
src/main/resources/application.properties
View file @
9a38a3e6
...
@@ -6,7 +6,7 @@ server.tomcat.uri-encoding=UTF-8
...
@@ -6,7 +6,7 @@ server.tomcat.uri-encoding=UTF-8
ServiceReportcron
=
"0/2 * * * * *";
ServiceReportcron
=
"0/2 * * * * *";
logging.level.com.cc
=
debug
logging.level.com.cc
=
debug
#spring.profiles.active=dev
spring.profiles.active
=
pro
#logging.path=
#logging.path=
# \u4E0D\u6307\u5B9A\u8DEF\u5F84\u5728\u5F53\u524D\u9879\u76EE\u4E0B\u751F\u6210springboot.log\u65E5\u5FD7
# \u4E0D\u6307\u5B9A\u8DEF\u5F84\u5728\u5F53\u524D\u9879\u76EE\u4E0B\u751F\u6210springboot.log\u65E5\u5FD7
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment