Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 98003001
authored
May 20, 2021
by
水库浪子
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
系统配置文件整合优化,同时为nacos添加开关,nacos默认为关闭状态
1 parent
e987ed22
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
131 additions
and
397 deletions
linkwe-admin/src/main/resources/application-druid.yml
linkwe-admin/src/main/resources/application.yml
linkwe-admin/src/main/resources/bootstrap.properties
linkwe-admin/src/main/resources/application-druid.yml
deleted
100644 → 0
View file @
e987ed2
# 项目相关配置
ruoyi
:
# 名称
name
:
RuoYi
# 版本
version
:
3.1.0
# 版权年份
copyrightYear
:
2019
startTenant
:
false
# 实例演示开关
demoEnabled
:
true
# 是否开启文件云上传(使用的是腾讯云,如果开启了,则需要配置腾讯云存储相关信息;如果关闭了则文件存储再本地,需要配置本地路径)
file
:
startCosUpload
:
true
imgUrlPrefix
:
#腾讯云对象存储
cos
:
secretId
:
secretKey
:
#link-wechat-1251309172.cos.ap-nanjing.myqcloud.com
region
:
bucketName
:
# 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /app/project/pic)
#profile: /data/jenkins_home/app/project/
# 获取ip地址开关
addressEnabled
:
false
# 验证码类型 math 数组计算 char 字符验证
captchaType
:
math
# 企业微信用户首次登录系统默认密码
weUserDefaultPwd
:
123456
#匿名访问的URL
anonUrl
:
-
/login
-
/captchaImage
-
/findWxQrLoginInfo
-
/wxQrLogin
-
/profile/**
-
/common/download**
-
/common/download/resource**
-
/common/download/url**
-
/swagger-ui.html
-
/swagger-resources/**
-
/webjars/**
-
/*/api-docs
-
/druid/**
-
/wecom/callback/**
-
/wecom/chat/item/list
-
/wecom/chat/collection/list
-
/wecom/chat/collection/cancleCollection
-
/wecom/chat/collection/addCollection
-
/wecom/chat/side/h5List
-
/wecom/ticket/**
-
/wecom/user/getUserInfo
-
/wecom/portrait/**
-
/wecom/fission/poster
-
/wecom/fission/complete/**
-
/wecom/fission/*/progress/*
-
/wecom/reward/getRewardByFissionId/**
-
/wecom/groupCode/getActualCode/**
-
/wecom/community/h5/**
-
/weixin/auth/**
-
/wecom/material/temporaryMaterialMediaId
# 开发环境配置
server
:
# 服务器的HTTP端口,默认为8090
port
:
8090
servlet
:
# 应用的访问路径
context-path
:
/
tomcat
:
# tomcat的URI编码
uri-encoding
:
UTF-8
# tomcat最大线程数,默认为200
max-threads
:
800
# Tomcat启动初始化的线程数,默认值25
min-spare-threads
:
30
# 日志配置
logging
:
level
:
com.ruoyi
:
debug
org.springframework
:
warn
path
:
./logs
path
:
log
:
./logs
#H5地址路径
H5
:
url
:
fissionUrl
:
fissionGroupUrl
:
# Spring配置
spring
:
# 资源信息
messages
:
# 国际化资源文件路径
basename
:
i18n/messages
datasource
:
type
:
com.alibaba.druid.pool.DruidDataSource
driverClassName
:
com.mysql.cj.jdbc.Driver
druid
:
# 主库数据源
master
:
url
:
jdbc:mysql://127.0.0.1:10179/lw-test?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username
:
root
password
:
root
# 从库数据源
slave
:
# 从数据源开关/默认关闭
enabled
:
false
url
:
username
:
password
:
# 初始连接数
initialSize
:
5
# 最小连接池数量
minIdle
:
10
# 最大连接池数量
maxActive
:
20
# 配置获取连接等待超时的时间
maxWait
:
60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
timeBetweenEvictionRunsMillis
:
60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
minEvictableIdleTimeMillis
:
300000
# 配置一个连接在池中最大生存的时间,单位是毫秒
maxEvictableIdleTimeMillis
:
900000
# 配置检测连接是否有效
validationQuery
:
SELECT 1 FROM DUAL
testWhileIdle
:
true
testOnBorrow
:
false
testOnReturn
:
false
webStatFilter
:
enabled
:
true
statViewServlet
:
enabled
:
true
# 设置白名单,不填则允许所有访问
allow
:
url-pattern
:
/druid/*
# 控制台管理用户名和密码
login-username
:
login-password
:
filter
:
stat
:
enabled
:
true
# 慢SQL记录
log-slow-sql
:
true
slow-sql-millis
:
1000
merge-sql
:
true
wall
:
config
:
multi-statement-allow
:
true
# 文件上传
servlet
:
multipart
:
# 单个文件大小
max-file-size
:
10MB
# 设置总上传的文件大小
max-request-size
:
20MB
task
:
execution
:
pool
:
keep-alive
:
10s
thread-name-prefix
:
common-pool-
# 服务模块
devtools
:
restart
:
# 热部署开关
enabled
:
true
# redis 配置
redis
:
# 地址
host
:
127.0.0.1
# 端口,默认为6379
port
:
6379
# 密码
password
:
# 连接超时时间
timeout
:
10s
lettuce
:
pool
:
# 连接池中的最小空闲连接
min-idle
:
0
# 连接池中的最大空闲连接
max-idle
:
8
# 连接池的最大数据库连接数
max-active
:
8
# #连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait
:
-1ms
# token配置
token
:
# 令牌自定义标识
header
:
Authorization
# 令牌密钥
secret
:
abcdefghijklmnopqrstuvwxyz
# 令牌有效期(默认30分钟)
expireTime
:
30
mybatis-plus
:
mapper-locations
:
classpath*:mapper/**/*Mapper.xml
type-aliases-package
:
com.linkwechat.**.domain
type-handlers-package
:
com.linkwechat.framework.handler.GenericTypeHandler,com.linkwechat.framework.handler.StringArrayJoinTypeHandler
configuration
:
log-impl
:
org.apache.ibatis.logging.stdout.StdOutImpl
global-config
:
db-config
:
logic-delete-field
:
delFlag
logic-delete-value
:
1
logic-not-delete-value
:
0
## MyBatis配置
#mybatis:
# # 搜索指定包别名
# typeAliasesPackage: com.linkwechat.**.domain
# # 配置mapper的扫描,找到所有的mapper.xml映射文件
# mapperLocations: classpath*:mapper/**/*Mapper.xml
# # 加载全局的配置文件
# configLocation: classpath:mybatis/mybatis-config.xml
# PageHelper分页插件
pagehelper
:
helperDialect
:
mysql
reasonable
:
true
supportMethodsArguments
:
true
params
:
count=countSql
# Swagger配置
swagger
:
# 是否开启swagger
enabled
:
true
# 请求前缀
pathMapping
:
# 防止XSS攻击
xss
:
# 过滤开关
enabled
:
true
# 排除链接(多个用逗号分隔)
excludes
:
/system/notice/*
# 匹配链接
urlPatterns
:
/system/*,/monitor/*,/tool/*
# elasticsearch配置
elasticsearch
:
schema
:
http
address
:
userName
:
"
elastic"
password
:
"
0p-0p-0p-"
connectTimeout
:
10000
socketTimeout
:
10000
connectionRequestTimeout
:
10000
maxConnectNum
:
100
maxConnectPerRoute
:
100
# forest配置
forest
:
backend
:
httpclient
retry-count
:
1
# 请求失败后重试次数,默认为0次不重试
max-retry-interval
:
1000
#重试间隔时间
connect-timeout
:
3000
#链接超时时间
timeout
:
3000
# 请求超时时间
wecome
:
chatKey
:
finance_new
serverUrl
:
https://qyapi.weixin.qq.com/
weComePrefix
:
cgi-bin
noAccessTokenUrl
:
-
/gettoken
-
/service/get_provider_token
-
/wecom/chat/side/list
-
/wecom/chat/item/list
-
/wecom/chat/collection/addCollection
-
/wecom/chat/collection/cancleCollection
-
/wecom/chat/collection/list
needContactTokenUrl
:
-
/externalcontact/get_follow_user_list
-
/externalcontact/add_contact_way
-
/externalcontact/update_contact_way
-
/externalcontact/add_corp_tag
-
/externalcontact/get_corp_tag_list
-
/externalcontact/del_corp_tag
-
/externalcontact/edit_corp_tag
-
/externalcontact/list
-
/externalcontact/get
-
/externalcontact/batch/get_by_user
-
/externalcontact/groupchat/list
-
/externalcontact/groupchat/get
-
/externalcontact/mark_tag
-
/externalcontact/transfer
-
/externalcontact/groupchat/transfer
-
/externalcontact/get_unassigned_list
-
/externalcontact/send_welcome_msg
-
/externalcontact/unionid_to_external_userid
-
/externalcontact/add_msg_template
-
/externalcontact/get_group_msg_result
-
/externalcontact/get_user_behavior_data
-
/externalcontact/groupchat/statistic
-
/externalcontact/groupchat/statistic_group_by_day
fileUplodUrl
:
/media/upload,/media/uploadimg
needProviderTokenUrl
:
-
/service/get_login_info
needChatTokenUrl
:
-
/msgaudit/get_permit_user_list
-
/msgaudit/check_single_agree
-
/msgaudit/check_room_agree
-
/msgaudit/groupchat/get
thirdAppUrl
:
-
/user/getuserinfo
-
/get_jsapi_ticket
-
/ticket/get
-
/agent/list
-
/message/send
-
/agent/get
-
/agent/set
needTenant
:
-
we_department
-
we_user
-
we_customer
-
we_tag_group
#企微回调通知配置
callBack
:
appIdOrCorpId
:
token
:
encodingAesKey
:
# JS SDK 身份校验url
authorizeUrl
:
# JS SDK身份校验成功后的redirect url
authorizeRedirectUrl
:
weixin
:
appid
:
secret
:
\ No newline at end of file
\ No newline at end of file
linkwe-admin/src/main/resources/application.yml
View file @
9800300
...
@@ -6,10 +6,21 @@ ruoyi:
...
@@ -6,10 +6,21 @@ ruoyi:
version
:
3.1.0
version
:
3.1.0
# 版权年份
# 版权年份
copyrightYear
:
2019
copyrightYear
:
2019
startTenant
:
false
# 实例演示开关
# 实例演示开关
demoEnabled
:
true
demoEnabled
:
true
# 是否开启文件云上传(使用的是腾讯云,如果开启了,则需要配置腾讯云存储相关信息;如果关闭了则文件存储再本地,需要配置本地路径)
file
:
startCosUpload
:
true
imgUrlPrefix
:
#腾讯云对象存储
cos
:
secretId
:
secretKey
:
region
:
bucketName
:
# 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /app/project/pic)
# 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /app/project/pic)
profile
:
/app/project/pic
#profile: /data/jenkins_home/app/project/
# 获取ip地址开关
# 获取ip地址开关
addressEnabled
:
false
addressEnabled
:
false
# 验证码类型 math 数组计算 char 字符验证
# 验证码类型 math 数组计算 char 字符验证
...
@@ -18,39 +29,41 @@ ruoyi:
...
@@ -18,39 +29,41 @@ ruoyi:
weUserDefaultPwd
:
123456
weUserDefaultPwd
:
123456
#匿名访问的URL
#匿名访问的URL
anonUrl
:
anonUrl
:
-
/login
-
/login
-
/captchaImage
-
/captchaImage
-
/findWxQrLoginInfo
-
/findWxQrLoginInfo
-
/wxQrLogin
-
/wxQrLogin
-
/profile/**
-
/profile/**
-
/common/download**
-
/common/download**
-
/common/download/resource**
-
/common/download/resource**
-
/common/download/url**
-
/common/download/url**
-
/swagger-ui.html
-
/swagger-ui.html
-
/swagger-resources/**
-
/swagger-resources/**
-
/webjars/**
-
/webjars/**
-
/*/api-docs
-
/*/api-docs
-
/druid/**
-
/druid/**
-
/wecom/callback/**
-
/wecom/callback/**
-
/wecom/chat/item/list
-
/wecom/chat/item/list
-
/wecom/chat/collection/list
-
/wecom/chat/collection/list
-
/wecom/chat/collection/cancleCollection
-
/wecom/chat/collection/cancleCollection
-
/wecom/chat/collection/addCollection
-
/wecom/chat/collection/addCollection
-
/wecom/chat/side/h5List
-
/wecom/chat/side/h5List
-
/wecom/ticket/**
-
/wecom/ticket/**
-
/wecom/user/getUserInfo
-
/wecom/user/getUserInfo
-
/wecom/portrait/**
-
/wecom/portrait/**
-
/wecom/fission/poster
-
/wecom/fission/poster
-
/wecom/fission/*/progress/*
-
/wecom/fission/complete/**
-
/wecom/reward/getRewardByFissionId/**
-
/wecom/fission/*/progress/*
-
/wecom/groupCode/getActualCode/**
-
/wecom/reward/getRewardByFissionId/**
-
/wecom/community/h5/**
-
/wecom/groupCode/getActualCode/**
-
/weixin/auth/**
-
/wecom/community/h5/**
-
/wecom/material/temporaryMaterialMediald
-
/weixin/auth/**
-
/wecom/material/temporaryMaterialMediaId
# 开发环境配置
# 开发环境配置
server
:
server
:
# 服务器的HTTP端口,默认为8090
# 服务器的HTTP端口,默认为8090
port
:
${APP_PORT:8090}
port
:
8090
servlet
:
servlet
:
# 应用的访问路径
# 应用的访问路径
context-path
:
/
context-path
:
/
...
@@ -73,23 +86,77 @@ path:
...
@@ -73,23 +86,77 @@ path:
#H5地址路径
#H5地址路径
H5
:
H5
:
url
:
www.baidu.com
url
:
fissionUrl
:
fissionGroupUrl
:
# Spring配置
# Spring配置
spring
:
spring
:
# 资源信息
# 资源信息
messages
:
messages
:
# 国际化资源文件路径
# 国际化资源文件路径
basename
:
i18n/messages
basename
:
i18n/messages
profiles
:
datasource
:
active
:
druid
type
:
com.alibaba.druid.pool.DruidDataSource
driverClassName
:
com.mysql.cj.jdbc.Driver
druid
:
# 主库数据源
master
:
url
:
jdbc:mysql://127.0.0.1:10179/lw-test?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username
:
root
password
:
root
# 从库数据源
slave
:
# 从数据源开关/默认关闭
enabled
:
false
url
:
username
:
password
:
# 初始连接数
initialSize
:
5
# 最小连接池数量
minIdle
:
10
# 最大连接池数量
maxActive
:
20
# 配置获取连接等待超时的时间
maxWait
:
60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
timeBetweenEvictionRunsMillis
:
60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
minEvictableIdleTimeMillis
:
300000
# 配置一个连接在池中最大生存的时间,单位是毫秒
maxEvictableIdleTimeMillis
:
900000
# 配置检测连接是否有效
validationQuery
:
SELECT 1 FROM DUAL
testWhileIdle
:
true
testOnBorrow
:
false
testOnReturn
:
false
webStatFilter
:
enabled
:
true
statViewServlet
:
enabled
:
true
# 设置白名单,不填则允许所有访问
allow
:
url-pattern
:
/druid/*
# 控制台管理用户名和密码
login-username
:
login-password
:
filter
:
stat
:
enabled
:
true
# 慢SQL记录
log-slow-sql
:
true
slow-sql-millis
:
1000
merge-sql
:
true
wall
:
config
:
multi-statement-allow
:
true
# 文件上传
# 文件上传
servlet
:
servlet
:
multipart
:
multipart
:
# 单个文件大小
# 单个文件大小
max-file-size
:
10MB
max-file-size
:
10MB
# 设置总上传的文件大小
# 设置总上传的文件大小
max-request-size
:
20MB
max-request-size
:
20MB
task
:
task
:
execution
:
execution
:
pool
:
pool
:
...
@@ -122,7 +189,6 @@ spring:
...
@@ -122,7 +189,6 @@ spring:
max-wait
:
-1ms
max-wait
:
-1ms
# token配置
# token配置
token
:
token
:
# 令牌自定义标识
# 令牌自定义标识
...
@@ -144,6 +210,14 @@ mybatis-plus:
...
@@ -144,6 +210,14 @@ mybatis-plus:
logic-delete-value
:
1
logic-delete-value
:
1
logic-not-delete-value
:
0
logic-not-delete-value
:
0
## MyBatis配置
#mybatis:
# # 搜索指定包别名
# typeAliasesPackage: com.linkwechat.**.domain
# # 配置mapper的扫描,找到所有的mapper.xml映射文件
# mapperLocations: classpath*:mapper/**/*Mapper.xml
# # 加载全局的配置文件
# configLocation: classpath:mybatis/mybatis-config.xml
# PageHelper分页插件
# PageHelper分页插件
pagehelper
:
pagehelper
:
...
@@ -171,9 +245,9 @@ xss:
...
@@ -171,9 +245,9 @@ xss:
# elasticsearch配置
# elasticsearch配置
elasticsearch
:
elasticsearch
:
schema
:
http
schema
:
http
address
:
127.0.0.1
address
:
userName
:
"
"
userName
:
password
:
"
"
password
:
connectTimeout
:
10000
connectTimeout
:
10000
socketTimeout
:
10000
socketTimeout
:
10000
connectionRequestTimeout
:
10000
connectionRequestTimeout
:
10000
...
@@ -182,7 +256,6 @@ elasticsearch:
...
@@ -182,7 +256,6 @@ elasticsearch:
# forest配置
# forest配置
forest
:
forest
:
# interceptors: com.linkwechat.wecom.interceptor.WeAccessTokenInterceptor
backend
:
httpclient
backend
:
httpclient
retry-count
:
1
# 请求失败后重试次数,默认为0次不重试
retry-count
:
1
# 请求失败后重试次数,默认为0次不重试
max-retry-interval
:
1000
#重试间隔时间
max-retry-interval
:
1000
#重试间隔时间
...
@@ -191,7 +264,7 @@ forest:
...
@@ -191,7 +264,7 @@ forest:
wecome
:
wecome
:
chatKey
:
finance
chatKey
:
finance
_new
serverUrl
:
https://qyapi.weixin.qq.com/
serverUrl
:
https://qyapi.weixin.qq.com/
weComePrefix
:
cgi-bin
weComePrefix
:
cgi-bin
noAccessTokenUrl
:
noAccessTokenUrl
:
...
@@ -225,7 +298,8 @@ wecome:
...
@@ -225,7 +298,8 @@ wecome:
-
/externalcontact/get_group_msg_result
-
/externalcontact/get_group_msg_result
-
/externalcontact/get_user_behavior_data
-
/externalcontact/get_user_behavior_data
-
/externalcontact/groupchat/statistic
-
/externalcontact/groupchat/statistic
fileUplodUrl
:
/media/upload,/media/uploadimg
-
/externalcontact/groupchat/statistic_group_by_day
fileUplodUrl
:
/media/upload,/media/uploadimg
needProviderTokenUrl
:
needProviderTokenUrl
:
-
/service/get_login_info
-
/service/get_login_info
needChatTokenUrl
:
needChatTokenUrl
:
...
@@ -237,7 +311,15 @@ wecome:
...
@@ -237,7 +311,15 @@ wecome:
-
/user/getuserinfo
-
/user/getuserinfo
-
/get_jsapi_ticket
-
/get_jsapi_ticket
-
/ticket/get
-
/ticket/get
-
/agent/list
-
/message/send
-
/message/send
-
/agent/get
-
/agent/set
needTenant
:
-
we_department
-
we_user
-
we_customer
-
we_tag_group
#企微回调通知配置
#企微回调通知配置
callBack
:
callBack
:
appIdOrCorpId
:
appIdOrCorpId
:
...
@@ -247,20 +329,7 @@ wecome:
...
@@ -247,20 +329,7 @@ wecome:
authorizeUrl
:
authorizeUrl
:
# JS SDK身份校验成功后的redirect url
# JS SDK身份校验成功后的redirect url
authorizeRedirectUrl
:
authorizeRedirectUrl
:
#腾讯云对象存储
cos
:
#id
secretId
:
#密钥
secretKey
:
#地区
region
:
#区块空间
bucketName
:
#访问前缀
imgUrlPrefix
:
#微信公众号配置
weixin
:
weixin
:
appid
:
appid
:
secret
:
secret
:
\ No newline at end of file
\ No newline at end of file
linkwe-admin/src/main/resources/bootstrap.properties
View file @
9800300
#spring.cloud.nacos.config.server-addr=
#spring.cloud.nacos.config.namespace=
#spring.application.name=
#spring.cloud.nacos.config.file-
extension
=
\ No newline at end of file
\ No newline at end of file
spring.cloud.nacos.config.server-
addr
=
${NACOS_SERVER:119.45.28.29:10848}
spring.cloud.nacos.config.namespace
=
01cf833f-249e-4483-a286-46d37f018fe7
spring.application.name
=
link-wechat
spring.cloud.nacos.config.file-
extension
=
yaml
spring.cloud.nacos.config.enabled
=
false
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
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 post a comment