From 1249f73dc25ebc7b7c80c2d5d18d75169b75c4a7 Mon Sep 17 00:00:00 2001 From: 16639036659 <577530412@qq.com> Date: 星期二, 01 十一月 2022 13:22:33 +0800 Subject: [PATCH] 隐患信息修改 --- src/main/resources/application-uat.yml | 72 ++++++++++++++++++++++++++++++++++++ src/main/resources/application.yml | 13 +++--- 2 files changed, 79 insertions(+), 6 deletions(-) diff --git a/src/main/resources/application-uat.yml b/src/main/resources/application-uat.yml new file mode 100644 index 0000000..17c0013 --- /dev/null +++ b/src/main/resources/application-uat.yml @@ -0,0 +1,72 @@ +# 数据源配置 +spring: + datasource: + type: com.alibaba.druid.pool.DruidDataSource + driverClassName: com.mysql.cj.jdbc.Driver + druid: + # 主库数据源 + master: +# driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://121.239.169.27:49037/safeplatform.luoan.uat?allowMultiQueries=true&autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useSSL=true&serverTimezone=UTC&zeroDateTimeBehavior=CONVERT_TO_NULL&serverTimezone=Asia/Shanghai + username: gkhy_safeplatform + password: afaQW90b!#n1 + + +# url: jdbc:mysql://localhost:3306/trouble_and_risk.guotai?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 +# username: root +# password: root + +# url: jdbc:mysql://localhost:17716/trouble_and_risk?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 +# username: trouble_and_risk +# password: Bw44sxzyiE8SdWzJ + +# url: jdbc:mysql://192.168.10.201:3306/trouble_and_risk?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 +# username: trouble_and_risk +# password: LYGstJAYc85jkF7H + + # 从库数据源 + 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 \ No newline at end of file diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 4ec9048..8ec8aca 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -10,8 +10,8 @@ demoEnabled: false # 文件路径 示例( Windows配置D:/TroubleAndRisk/uploadPath,Linux配置 /home/TroubleAndRisk/uploadPath) # profile: /www/TroubleAndRisk/uploadPath -# profile: D:/ProjFile/TroubleAndRisk - profile: /home/troubleAndRisk/upload + profile: D:/ProjFile/TroubleAndRisk +# profile: /home/troubleAndRisk/upload # 获取ip地址开关 addressEnabled: true # 获取服务器域名 @@ -19,7 +19,7 @@ # 开发环境配置 server: # 服务器的HTTPS端口,为443 - port: 1443 + port: 443 # ssl: # key-store: /root/ssl/syf.com.pfx # key-store: H:/wm/ssl/syf.com.pfx @@ -37,8 +37,8 @@ http: # HTTP端口,39559 -# additionalPorts: 80 - additionalPorts: 6801 + additionalPorts: 80 +# additionalPorts: 6801 # 日志配置 logging: @@ -68,7 +68,8 @@ time-zone: GMT+8 date-format: yyyy-MM-dd HH:mm:ss profiles: - active: druid +# active: druid + active: uat # 文件上传 servlet: multipart: -- Gitblit v1.9.2