Skip to content

Commit

Permalink
chore/添加local文件
Browse files Browse the repository at this point in the history
  • Loading branch information
freestylefly committed Mar 29, 2024
1 parent 50bef5a commit 5210e6c
Show file tree
Hide file tree
Showing 2 changed files with 124 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ nbdist/

.DS_store
*/.DS_store
application-*.yml
application-prod.yml
123 changes: 123 additions & 0 deletions pmhub-admin/src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
# 数据源配置
spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driverClassName: com.mysql.cj.jdbc.Driver
druid:
# 主库数据源
master:
url: jdbc:mysql://127.0.0.1:3306/laigeoffer-pmhub?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root
password: 123456
# 从库数据源
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
reset-enable: false
url-pattern: /druid/*

filter:
stat:
enabled: true
# 慢SQL记录
log-slow-sql: true
slow-sql-millis: 3000
merge-sql: true
wall:
config:
multi-statement-allow: true

# redis 配置
redis:
# 地址
host: 0.0.0.0
# 端口,默认为6379
port: 6379
# 数据库索引
database: 0
# 密码
password:
# 连接超时时间
timeout: 10s
lettuce:
pool:
# 连接池中的最小空闲连接
min-idle: 0
# 连接池中的最大空闲连接
max-idle: 8
# 连接池的最大数据库连接数
max-active: 8
# #连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait: -1ms

# 自定义参数
pmhub:
# 企微相关
workWx:
host: https://laigeoffer.cn
corpid: wx123a99282131
corpsecret: 231asdad
addressSecret: 2131234
agentid: 12
aeskey: sda12
path:
# 企微相关
oa:
host: https://laigeoffer.cn
path2: /stage-api
clientId: 12
clientSecret: asd12
path: https://laigeoffer.cn
appId: wx12
code: 2
# 请确保开启企业微信消息联动后再开启MQ,并开启 RocketMqUtils 和 OAMessageConsumer
# rocketMQ:
# addr: 127.0.0.1:8081
# topic:
# wxMessage: laigeoffer_pmhub_local
# uselessTask: laigeoffer_pmhub_local_useless
# consumerGroup: laigeoffer_MANAGER_GROUP
# group:
# uselessTask: laigeoffer_MANAGER_GROUP_USELESS

# 加解密公钥和私钥
secrecy:
privateKey: 12MIGTAgEAMBMGByqGSM49AgEGCCqBHM9VAYItBHkwdwIBAQQgElDjS1Gg6QjpSbfDe0Envb05XEDU9n1fx7wd8ezlnI6gCgYIKoEcz1UBgi2hRANCAAQw/nkFKApgqpwNXLhbjQP6T9vAM4NI86jiKPREJnGwStnLqg3Yx6e3ToBxRA+I4/In8DyIftO9xN0DzYAGTBlr
publicKey: 21MFkwEwYHKoZIzj0CAQYIKoEcz1UBgi0DQgAEMP55BSgKYKqcDVy4W40D+k/bwDODSPOo4ij0RCZxsErZy6oN2Ment06AcUQPiOPyJ/A8iH7TvcTdA82ABkwZaw==

# 日志配置
logging:
level:
com.laigeoffer.pmhub: info
org.springframework: warn
# 日志路径配置:测试及线上环境请勿修改保证 path: /data/logs 始终是这个 因为容器部署挂载的这个路径,本地环境可修改自己的存储路径
file:
path: ./logs/laigeoffer/pmhub/


0 comments on commit 5210e6c

Please sign in to comment.