Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
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
lanbaoming
jiedao-api-boot-master
Commits
fa599ede
Commit
fa599ede
authored
Nov 14, 2024
by
wux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改环境配置
parent
62c72cd9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
20 deletions
+24
-20
application-dev.yaml
yudao-server/src/main/resources/application-dev.yaml
+24
-20
No files found.
yudao-server/src/main/resources/application-dev.yaml
View file @
fa599ede
...
...
@@ -33,7 +33,7 @@ spring:
druid
:
# Druid 【连接池】相关的全局配置
initial-size
:
5
# 初始连接数
min-idle
:
10
# 最小连接池数量
max-active
:
5
0
# 最大连接池数量
max-active
:
2
0
# 最大连接池数量
max-wait
:
600000
# 配置获取连接等待超时的时间,单位:毫秒
time-between-eviction-runs-millis
:
60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位:毫秒
min-evictable-idle-time-millis
:
300000
# 配置一个连接在池中最小生存的时间,单位:毫秒
...
...
@@ -46,31 +46,33 @@ spring:
datasource
:
master
:
name
:
jiedao
url
:
jdbc:mysql://172.16.0.3:3306/${spring.datasource.dynamic.datasource.master.name}?useUnicode=true&useSSL=true&characterEncoding=utf8&characterSetResults=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&autoReconnect=true&rewriteBatchedStatements=TRUE&connectTimeout=60000
# name: ruoyi-vue-pro-flowable
url
:
jdbc:mysql://172.18.96.67:2795/${spring.datasource.dynamic.datasource.master.name}?useUnicode=true&useSSL=true&characterEncoding=utf8&characterSetResults=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&autoReconnect=true&rewriteBatchedStatements=TRUE
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
jiedao
password
:
Jiedao2024
slave
:
# 模拟从库,可根据自己需要修改
# 模拟从库,可根据自己需要修改
password
:
pcn491nh086trmjh
slave
:
# 模拟从库,可根据自己需要修改
name
:
jiedao
url
:
jdbc:mysql://172.16.0.3:3306/${spring.datasource.dynamic.datasource.slave.name}?useUnicode=true&useSSL=true&characterEncoding=utf8&characterSetResults=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&autoReconnect=true&rewriteBatchedStatements=TRUE&connectTimeout=60000
# name: ruoyi-vue-pro-flowable
url
:
jdbc:mysql://172.18.96.67:2795/${spring.datasource.dynamic.datasource.slave.name}?useUnicode=true&useSSL=true&characterEncoding=utf8&characterSetResults=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&autoReconnect=true&rewriteBatchedStatements=TRUE
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
jiedao
password
:
Jiedao2024
password
:
pcn491nh086trmjh
# Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
redis
:
host
:
172.16.0.3
# 地址
port
:
6379
# 端口
host
:
172.18.96.67
# 地址
port
:
2796
# 端口
password
:
pcn491nh086trmjh
database
:
0
# 数据库索引
password
:
Redis2024
timeout
:
60s
connect-timeout
:
60s
redis-limiter
:
redis-host
:
172.1
6.0.3
# redis server IP 默认值:127.0.0.1
redis-port
:
6379
# redis service 端口 默认值:6379
redis-db
:
4
# redis service 数据库 默认值:6379
redis-password
:
Redis2024
# redis 访问密码 默认值:null
redis-host
:
172.1
8.96.67
# redis server IP 默认值:127.0.0.1
redis-port
:
2796
# redis service 端口 默认值:6379
redis-db
:
4
# redis service 数据库 默认值:6379
redis-password
:
pcn491nh086trmjh
# redis 访问密码 默认值:null
redis-connection-timeout
:
2000
# redis 连接超时时间 默认值:2000
redis-pool-max-idle
:
50
# redis 连接池最大空闲连接数 默认值:50
redis-pool-min-idle
:
10
# redis 连接池最小空闲连接数 默认值: 10
...
...
@@ -87,7 +89,7 @@ spring:
# Quartz 配置项,对应 QuartzProperties 配置类
spring
:
quartz
:
auto-startup
:
true
# 测试环境,需
要开启 Job
auto-startup
:
false
# 本地开发环境,尽量不
要开启 Job
scheduler-name
:
schedulerName
# Scheduler 名字。默认为 schedulerName
job-store-type
:
jdbc
# Job 存储器类型。默认为 memory 表示内存,可选 jdbc 使用数据库。
wait-for-jobs-to-complete-on-shutdown
:
true
# 应用关闭时,是否等待定时任务执行完成。默认为 false ,建议设置为 true
...
...
@@ -170,7 +172,7 @@ spring:
logging
:
level
:
root
:
INFO
cn.iocoder.yudao
:
INFO
cn.iocoder.yudao
:
DEBUG
---
#################### 微信公众号相关配置 ####################
wx
:
# 参见 https://github.com/Wechat-Group/WxJava/blob/develop/spring-boot-starters/wx-java-mp-spring-boot-starter/README.md 文档
...
...
@@ -187,10 +189,12 @@ wx: # 参见 https://github.com/Wechat-Group/WxJava/blob/develop/spring-boot-sta
---
#################### 捷道相关配置 ####################
web
:
resource
:
D:/tem
p/cms/
resource
:
/ap
p/cms/
# 捷道配置项,设置当前项目所有自定义的配置
yudao
:
captcha
:
enable
:
false
# 本地环境,暂时关闭图片验证码,方便登录等接口的测试
security
:
token-header
:
Authorization
token-timeout
:
30d
...
...
@@ -206,7 +210,7 @@ yudao:
pay-notify-url
:
http://niubi.natapp1.cc/api/pay/order/notify
pay-return-url
:
http://niubi.natapp1.cc/api/pay/order/return
refund-notify-url
:
http://niubi.natapp1.cc/api/pay/refund/notify
demo
:
false
#
开启
演示模式
demo
:
false
#
关闭
演示模式
business
:
# 业务运行配置
debug
:
true
# 开启debug模式
sms-code
:
# 短信验证码相关的配置项
...
...
@@ -222,8 +226,8 @@ yudao:
begin-code
:
9999
# 验证码最小值
end-code
:
9999
# 验证码最大值。
member
:
# 会员相关配置
register-url
:
https://app
test
.groupage.cn/#/pages/register/shareRegister?code=
share-url
:
https://app
test
.groupage.cn/#
register-url
:
https://app
local
.groupage.cn/#/pages/register/shareRegister?code=
share-url
:
https://app
local
.groupage.cn/#
justauth
:
enabled
:
true
...
...
@@ -246,7 +250,7 @@ justauth:
prefix
:
'
social_auth_state:'
# 缓存前缀,目前只对 Redis 缓存生效,默认 JUSTAUTH::STATE::
timeout
:
24h
# 超时时长,目前只对 Redis 缓存生效,默认 3 分钟
ue
:
root-path
:
/app/static/uploads
#文件存储根目录(可选配置),默认为[classpath:/static]
root-path
:
classpath:/static
#文件存储根目录(可选配置),默认为[classpath:/static]
server-url
:
/ueditor/jsp/controller
#服务器统一请求接口路径(可选配置),默认为[/ueditor/jsp/controller] upload: cn.jasonone.ueditor.upload.LocationFileStorage #文件持久化处理类(可选配置),默认为[cn.jasonone.ueditor.upload.LocationFileStorage]
templates-url
:
templates
temp-dir
:
temp
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