Commit 87273967 by chentianzhong

提交代码

parent e29f89de
......@@ -115,11 +115,11 @@ public class EmailAttachServiceImpl extends ServiceImpl<EmailAttachMapper, Email
if (profile.equals("product") || profile.equals("test")) {
download = "http://147.1.3.87/attwjsf_email" + path;
}else if (profile.equals("wanpro") || profile.equals("wantest")){
download = "http://172.28.1.159:82/attwjsf_yj" + path;
download = "http://172.28.1.159:83/attwjsf_yj" + path;
}
}else{
if (profile.equals("wanpro") || profile.equals("wantest")) {
download.replaceAll("147.2.3.3", "172.28.1.70");
download.replaceAll("147.2.3.3", "172.28.1.71");
}
}
return download;
......@@ -136,11 +136,11 @@ public class EmailAttachServiceImpl extends ServiceImpl<EmailAttachMapper, Email
if (profile.equals("product") || profile.equals("test")) {
download = "http://147.1.3.87/attwjsf_email" + path;
}else if (profile.equals("wanpro") || profile.equals("wantest")){
download = "http://172.28.1.159:82/attwjsf_yj" + path;
download = "http://172.28.1.159:83/attwjsf_yj" + path;
}
}else{
if (profile.equals("wanpro") || profile.equals("wantest")) {
download.replaceAll("147.2.3.3", "172.28.1.70");
download.replaceAll("147.2.3.3", "172.28.1.71");
}
}
return download;
......
#配置数据源
spring:
redis:
#数据库索引
database: 0
host: 172.28.1.71
port: 6379
password: zq4208!@#$
timeout: 5000
datasource:
druid:
db-type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:kingbase8://172.28.1.68:54321/EMAIL_NEW
username: oa_system
password: GXfy/2014!@#$
driver-class-name: com.kingbase8.Driver
# 初始连接数
initial-size: 20
# 最小连接数
min-idle: 20
# 最大连接数
max-active: 50
# 获取连接超时时间
max-wait: 5000
# 连接有效性检测时间
time-between-eviction-runs-millis: 60000
# 连接在池中最小生存的时间
min-evictable-idle-time-millis: 300000
# 连接在池中最大生存的时间
max-evictable-idle-time-millis: 900000
test-while-idle: true
test-on-borrow: false
test-on-return: false
# 检测连接是否有效
validation-query: select 1
# 配置监控统计
webStatFilter:
enabled: true
#安全配置
stat-view-servlet:
enabled: true
url-pattern: /druid/*
reset-enable: false
login-username: admin
login-password: GXfy2021
allow: 127.0.0.1,147.1.*.*
filter:
stat:
enabled: true
# 记录慢SQL
log-slow-sql: true
slow-sql-millis: 1000
merge-sql: true
wall:
config:
multi-statement-allow: true
#是否开启 swagger-ui
swagger:
enabled: false
sms:
app-id: oa_new
app-key: OA@2022!
url: http://172.28.1.71:9888/ums/inside_new/sendBatch
\ No newline at end of file
......@@ -8,8 +8,8 @@
<contextName>logback</contextName>
<!-- name的值是变量的名称,value的值时变量定义的值。通过定义的值会被插入到logger上下文中。定义变量后,可以使“${}”来使用变量。 -->
<property name="log.path" value="/opt/oa-cloud/email/logs/"/>
<!-- <property name="log.path" value="/opt/services/oa-new/email/logs/"/>-->
<!-- <property name="log.path" value="/opt/oa-cloud/email/logs/"/>-->
<property name="log.path" value="/opt/services/oa/email/logs/"/>
<!-- <property name="log.path" value="D:/seallog/"/>-->
<!--主要日志文件名-->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment