Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
beijing-vehicleflow
Project
Project
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
zhangzhenbang
beijing-vehicleflow
Commits
073ff310
Commit
073ff310
authored
Feb 23, 2020
by
zhangzhenbang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
初始化
parent
2ffef9fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
0 deletions
+57
-0
application.yml
src/main/resources/application.yml
+57
-0
No files found.
src/main/resources/application.yml
0 → 100644
View file @
073ff310
server
:
port
:
8888
spring
:
# datasource:
# driver-class-name: com.mysql.cj.jdbc.Driver
# url: jdbc:mysql://121.22.111.253/covidnews?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&serverTimezone=UTC
# username: root
# password: 1qaz@WSX
# hikari:
# minimum-idle: 5
# # 连接池最大连接数,默认是10
# maximum-pool-size: 20
# # 空闲连接存活最大时间,默认600000(10分钟)
# idle-timeout: 180000
# # 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认1800000即30分钟
# max-lifetime: 1800000
# # 数据库连接超时时间,默认30秒,即30000
# connection-timeout: 30000
datasource
:
druid
:
url
:
jdbc:mysql://121.22.111.253/peking?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC&autoReconnect=true&useSSL=false
username
:
root
password
:
1qaz@WSX
initial-size
:
1
min-idle
:
1
max-active
:
20
test-on-borrow
:
true
# MySQL 8.x: com.mysql.cj.jdbc.Driver
driver-class-name
:
com.mysql.cj.jdbc.Driver
mybatis
:
configuration
:
map-underscore-to-camel-case
:
true
# ConnectionRequestTimeout:从线程池获取连接的时间
# ConnectTimeout:建立连接的时间
# ReadTimeout:指客户端和服务器建立连接后,客户端从服务器读取数据的timeout
# maxTotal: 连接池最大连接数
# defaultMaxPerRoute: 每个主机的并发
# validateAfterInactivity: 可用空闲连接过期时间,重用空闲连接时会先检查是否空闲时间超过这个时间,如果超过,释放socket重新建立
restTemplate
:
connect-config
:
connectionRequestTimeout
:
2000
connectTimeout
:
10000
readTimeout
:
11000
connect-pool
:
maxTotal
:
50
defaultMaxPerRoute
:
10000
validateAfterInactivity
:
30000
async-Config
:
MAX-POOL-SIZE
:
50
CORE-POOL-SIZE
:
20
auth-url
:
http://121.22.111.251:9006/yxidauth/v1/auth
isolate-days
:
14
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