Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JooLun-wx
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
zhushanglei
JooLun-wx
Commits
f933f360
Commit
f933f360
authored
Aug 20, 2021
by
zhushanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置文件拆分
parent
cdbc0da0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
107 additions
and
59 deletions
+107
-59
application-dev.yml
...un-wx/joolun-admin/src/main/resources/application-dev.yml
+52
-2
application-docker.yml
...wx/joolun-admin/src/main/resources/application-docker.yml
+52
-0
application.yml
joolun-wx/joolun-admin/src/main/resources/application.yml
+3
-57
No files found.
joolun-wx/joolun-admin/src/main/resources/application-dev.yml
View file @
f933f360
#
数据源
配置
#
Spring
配置
spring
:
debug
:
true
\ No newline at end of file
datasource
:
type
:
com.zaxxer.hikari.HikariDataSource
driverClassName
:
com.mysql.cj.jdbc.Driver
url
:
jdbc:mysql://localhost:3306/joolun_ry?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username
:
root
password
:
root
hikari
:
maximum-pool-size
:
100
connection-timeout
:
60000
minimum-idle
:
10
connection-test-query
:
SELECT
1
max-lifetime
:
540000
idle-timeout
:
500000
# 资源信息
messages
:
# 国际化资源文件路径
basename
:
i18n/messages
# 文件上传
servlet
:
multipart
:
# 单个文件大小
max-file-size
:
10MB
# 设置总上传的文件大小
max-request-size
:
20MB
# 服务模块
devtools
:
restart
:
# 热部署开关
enabled
:
false
# redis 配置
redis
:
# 地址
host
:
localhost
# 端口,默认为6379
port
:
6379
# 数据库索引
database
:
0
# 密码
password
:
# 连接超时时间
timeout
:
10s
lettuce
:
pool
:
# 连接池中的最小空闲连接
min-idle
:
0
# 连接池中的最大空闲连接
max-idle
:
8
# 连接池的最大数据库连接数
max-active
:
8
# #连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait
:
-1ms
joolun-wx/joolun-admin/src/main/resources/application-docker.yml
0 → 100644
View file @
f933f360
spring
:
datasource
:
type
:
com.zaxxer.hikari.HikariDataSource
driverClassName
:
com.mysql.cj.jdbc.Driver
url
:
jdbc:mysql://wx-db:3306/joolun_ry?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username
:
root
password
:
root
hikari
:
maximum-pool-size
:
100
connection-timeout
:
60000
minimum-idle
:
10
connection-test-query
:
SELECT
1
max-lifetime
:
540000
idle-timeout
:
500000
# 资源信息
messages
:
# 国际化资源文件路径
basename
:
i18n/messages
# 文件上传
servlet
:
multipart
:
# 单个文件大小
max-file-size
:
10MB
# 设置总上传的文件大小
max-request-size
:
20MB
# 服务模块
devtools
:
restart
:
# 热部署开关
enabled
:
false
# redis 配置
redis
:
# 地址
host
:
wx-redis
# 端口,默认为6379
port
:
6379
# 数据库索引
database
:
0
# 密码
password
:
# 连接超时时间
timeout
:
10s
lettuce
:
pool
:
# 连接池中的最小空闲连接
min-idle
:
0
# 连接池中的最大空闲连接
max-idle
:
8
# 连接池的最大数据库连接数
max-active
:
8
# #连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait
:
-1ms
joolun-wx/joolun-admin/src/main/resources/application.yml
View file @
f933f360
...
...
@@ -8,6 +8,9 @@ ruoyi:
addressEnabled
:
false
# 验证码类型 math 数组计算 char 字符验证
captchaType
:
math
spring
:
profiles
:
active
:
dev
# 开发环境配置
server
:
# 服务器的HTTP端口,默认为7500
...
...
@@ -28,63 +31,6 @@ logging:
level
:
cn.minestar
:
debug
org.springframework
:
warn
# Spring配置
spring
:
datasource
:
type
:
com.zaxxer.hikari.HikariDataSource
driverClassName
:
com.mysql.cj.jdbc.Driver
url
:
jdbc:mysql://wx-db:3306/joolun_ry?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username
:
root
password
:
root
hikari
:
maximum-pool-size
:
100
connection-timeout
:
60000
minimum-idle
:
10
connection-test-query
:
SELECT
1
max-lifetime
:
540000
idle-timeout
:
500000
# 资源信息
messages
:
# 国际化资源文件路径
basename
:
i18n/messages
profiles
:
active
:
dev
# 文件上传
servlet
:
multipart
:
# 单个文件大小
max-file-size
:
10MB
# 设置总上传的文件大小
max-request-size
:
20MB
# 服务模块
devtools
:
restart
:
# 热部署开关
enabled
:
false
# redis 配置
redis
:
# 地址
host
:
wx-redis
# 端口,默认为6379
port
:
6379
# 数据库索引
database
:
0
# 密码
password
:
# 连接超时时间
timeout
:
10s
lettuce
:
pool
:
# 连接池中的最小空闲连接
min-idle
:
0
# 连接池中的最大空闲连接
max-idle
:
8
# 连接池的最大数据库连接数
max-active
:
8
# #连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait
:
-1ms
# token配置
token
:
# 令牌自定义标识
...
...
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