Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xzxt-control
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
常超
xzxt-control
Commits
0c59c1a4
Commit
0c59c1a4
authored
Nov 19, 2018
by
chang_chao@founder.com.cn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加开发配置
parent
ebcfb754
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
62 additions
and
1 deletions
+62
-1
src/main/resources/application-dev.yml
+61
-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 @
0c59c1a4
spring
:
datasource
:
# 数据源基本配置
username
:
root
password
:
123
driver-class-name
:
com.mysql.jdbc.Driver
url
:
jdbc:mysql://127.0.0.1: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
#schema
:
# - classpath:sql/department.sql
# - classpath:sql/employee.sql
# 调用运行监控微服务url
service-rest
:
startRest
:
"
http://127.0.0.1:8084/service-rest/start"
stopRest
:
"
http://127.0.0.1:8084/service-rest/stop"
reportRest
:
"
http://127.0.0.1:8084/service-rest/report"
LogsRest
:
"
http://127.0.0.1:8084/service-rest/logs"
# 调用运行监控微服务shell脚本位置(注意:不建议修改)
shellPaht
:
"
/usr/local/shell/"
# 调用运行监控微服务shell脚本
startTomcatName
:
"
startTomcat.sh"
stopTomcatName
:
"
shutTomcat.sh"
reportTomcatName
:
"
reportTomcat.sh"
LogsTomcatName
:
"
tomcatLogs.sh"
# 远程控制台地址
Capability
:
"
http://10.94.61.158:3001/"
# 数据库监控地址
SqlCapability
:
"
http://10.94.61.158:8085/treesoft"
# 访问部署文档路径(暂时不用)
ReadDocumentPath
:
"
http://localhost:9022/document/"
ThreadPool
:
#核心线程数
corePoolSize
:
20
#最大线程数
maxPoolSize
:
200
#任务队列容量(阻塞队列)
queueCapacity
:
10
src/main/resources/application.yml
→
src/main/resources/application
-pro
.yml
View file @
0c59c1a4
File moved
src/main/resources/application.properties
View file @
0c59c1a4
...
@@ -11,7 +11,7 @@ spring.mvc.view.suffix=.jsp
...
@@ -11,7 +11,7 @@ spring.mvc.view.suffix=.jsp
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