Commit 27629c51394c4fb433fc997c49cc3354205f95fd

Authored by 颜惠青
1 parent beedfcc7

生产版本配置修改

urbanops-server/src/main/resources/application-prod.yaml
1 server: 1 server:
2 - port: 58080 2 + port: 48081
3 3
4 --- #################### 数据库相关配置 #################### 4 --- #################### 数据库相关配置 ####################
  5 +
5 spring: 6 spring:
6 autoconfigure: 7 autoconfigure:
7 # noinspection SpringBootApplicationYaml 8 # noinspection SpringBootApplicationYaml
8 exclude: 9 exclude:
9 - - com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure # 排除 Druid 的自动配置,使用 dynamic-datasource-spring-boot-starter 配置多数据源  
10 - - org.springframework.boot.autoconfigure.quartz.QuartzAutoConfiguration # 默认 local 环境,不开启 Quartz 的自动配置  
11 - - de.codecentric.boot.admin.server.config.AdminServerAutoConfiguration # 禁用 Spring Boot Admin 的 Server 的自动配置  
12 - - de.codecentric.boot.admin.server.ui.config.AdminServerUiAutoConfiguration # 禁用 Spring Boot Admin 的 Server UI 的自动配置  
13 - - de.codecentric.boot.admin.client.config.SpringBootAdminClientAutoConfiguration # 禁用 Spring Boot Admin 的 Client 的自动配置  
14 - - org.springframework.ai.autoconfigure.vectorstore.qdrant.QdrantVectorStoreAutoConfiguration # 禁用 AI 模块的 Qdrant,手动创建  
15 - - org.springframework.ai.autoconfigure.vectorstore.milvus.MilvusVectorStoreAutoConfiguration # 禁用 AI 模块的 Milvus,手动创建 10 + - org.springframework.ai.vectorstore.qdrant.autoconfigure.QdrantVectorStoreAutoConfiguration # 禁用 AI 模块的 Qdrant,手动创建
  11 + - org.springframework.ai.vectorstore.milvus.autoconfigure.MilvusVectorStoreAutoConfiguration # 禁用 AI 模块的 Milvus,手动创建
16 # 数据源配置项 12 # 数据源配置项
17 datasource: 13 datasource:
18 druid: # Druid 【监控】相关的全局配置 14 druid: # Druid 【监控】相关的全局配置
@@ -50,20 +46,20 @@ spring: @@ -50,20 +46,20 @@ spring:
50 datasource: 46 datasource:
51 #driver-class-name: com.mysql.cj.jdbc.Driver 47 #driver-class-name: com.mysql.cj.jdbc.Driver
52 master: 48 master:
53 - url: jdbc:mysql://172.172.11.63:3306/smart_city?useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=UTC  
54 - username: smart_city  
55 - password: Zteits@qwe 49 + url: jdbc:mysql://172.172.11.79:3306/urban_ops_agent?useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=UTC
  50 + username: root
  51 + password: mysql2026!prod
56 slave: # 模拟从库,可根据自己需要修改 52 slave: # 模拟从库,可根据自己需要修改
57 lazy: true # 开启懒加载,保证启动速度 53 lazy: true # 开启懒加载,保证启动速度
58 - url: jdbc:mysql://172.172.11.63:3306/smart_city?useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=UTC  
59 - username: smart_city  
60 - password: Zteits@qwe 54 + url: jdbc:mysql://172.172.11.79:3306/urban_ops_agent?useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=UTC
  55 + username: root
  56 + password: mysql2026!prod
61 57
62 # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优 58 # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
63 data: 59 data:
64 redis: 60 redis:
65 - host: 172.172.11.47  
66 - password: redis2025!prod 61 + host: 172.172.11.78
  62 + password: redis2026!prod
67 database: 9 63 database: 9
68 port: 6379 64 port: 6379
69 jedis: 65 jedis:
@@ -78,7 +74,7 @@ spring: @@ -78,7 +74,7 @@ spring:
78 # Quartz 配置项,对应 QuartzProperties 配置类 74 # Quartz 配置项,对应 QuartzProperties 配置类
79 spring: 75 spring:
80 quartz: 76 quartz:
81 - auto-startup: true # 本地开发环境,尽量不要开启 Job 77 + auto-startup: true # 测试环境,需要开启 Job
82 scheduler-name: schedulerName # Scheduler 名字。默认为 schedulerName 78 scheduler-name: schedulerName # Scheduler 名字。默认为 schedulerName
83 job-store-type: jdbc # Job 存储器类型。默认为 memory 表示内存,可选 jdbc 使用数据库。 79 job-store-type: jdbc # Job 存储器类型。默认为 memory 表示内存,可选 jdbc 使用数据库。
84 wait-for-jobs-to-complete-on-shutdown: true # 应用关闭时,是否等待定时任务执行完成。默认为 false ,建议设置为 true 80 wait-for-jobs-to-complete-on-shutdown: true # 应用关闭时,是否等待定时任务执行完成。默认为 false ,建议设置为 true
@@ -161,21 +157,22 @@ logging: @@ -161,21 +157,22 @@ logging:
161 com.zteits.module.infra.dal.mysql.logger.ApiErrorLogMapper: INFO # 配置 ApiErrorLogMapper 的日志级别为 info,避免和 GlobalExceptionHandler 重复打印 157 com.zteits.module.infra.dal.mysql.logger.ApiErrorLogMapper: INFO # 配置 ApiErrorLogMapper 的日志级别为 info,避免和 GlobalExceptionHandler 重复打印
162 com.zteits.module.infra.dal.mysql.job.JobLogMapper: INFO # 配置 JobLogMapper 的日志级别为 info 158 com.zteits.module.infra.dal.mysql.job.JobLogMapper: INFO # 配置 JobLogMapper 的日志级别为 info
163 com.zteits.module.infra.dal.mysql.file.FileConfigMapper: INFO # 配置 FileConfigMapper 的日志级别为 info 159 com.zteits.module.infra.dal.mysql.file.FileConfigMapper: INFO # 配置 FileConfigMapper 的日志级别为 info
164 - com.zteits.module.pay.dal.mysql: debug  
165 - com.zteits.module.pay.dal.mysql.notify.PayNotifyTaskMapper: INFO # 配置 PayNotifyTaskMapper 的日志级别为 info 160 + #com.zteits.module.pay.dal.mysql: debug
  161 + #com.zteits.module.pay.dal.mysql.notify.PayNotifyTaskMapper: INFO # 配置 PayNotifyTaskMapper 的日志级别为 info
166 com.zteits.module.system.dal.mysql: debug 162 com.zteits.module.system.dal.mysql: debug
167 com.zteits.module.system.dal.mysql.sms.SmsChannelMapper: INFO # 配置 SmsChannelMapper 的日志级别为 info 163 com.zteits.module.system.dal.mysql.sms.SmsChannelMapper: INFO # 配置 SmsChannelMapper 的日志级别为 info
168 com.zteits.module.tool.dal.mysql: debug 164 com.zteits.module.tool.dal.mysql: debug
169 - com.zteits.module.member.dal.mysql: debug  
170 - com.zteits.module.trade.dal.mysql: debug  
171 - com.zteits.module.promotion.dal.mysql: debug  
172 - com.zteits.module.statistics.dal.mysql: debug  
173 - com.zteits.module.crm.dal.mysql: debug  
174 - com.zteits.module.erp.dal.mysql: debug  
175 - com.zteits.module.iot.dal.mysql: debug  
176 - com.zteits.module.iot.dal.tdengine: DEBUG  
177 - com.zteits.module.ai.dal.mysql: debug  
178 - org.springframework.context.support.PostProcessorRegistrationDelegate: ERROR # TODO 芋艿:先禁用,Spring Boot 3.X 存在部分错误的 WARN 提示 165 + com.zteits.module.workorder.dal.mysql: debug
  166 + #com.zteits.module.member.dal.mysql: debug
  167 + #com.zteits.module.trade.dal.mysql: debug
  168 + #com.zteits.module.promotion.dal.mysql: debug
  169 + #com.zteits.module.statistics.dal.mysql: debug
  170 + #com.zteits.module.crm.dal.mysql: debug
  171 + #com.zteits.module.erp.dal.mysql: debug
  172 + #com.zteits.module.iot.dal.mysql: debug
  173 + #com.zteits.module.iot.dal.tdengine: DEBUG
  174 + #com.zteits.module.ai.dal.mysql: debug
  175 + #org.springframework.context.support.PostProcessorRegistrationDelegate: ERROR # TODO 芋艿:先禁用,Spring Boot 3.X 存在部分错误的 WARN 提示
179 176
180 debug: false 177 debug: false
181 178
@@ -314,3 +311,10 @@ amap: @@ -314,3 +311,10 @@ amap:
314 # 数字签名配置 - 请根据实际情况配置 311 # 数字签名配置 - 请根据实际情况配置
315 enable-signature: true # 启用数字签名 312 enable-signature: true # 启用数字签名
316 private-key: b2bae35d223a9fc0704f8ad24b2595b4 313 private-key: b2bae35d223a9fc0704f8ad24b2595b4
  314 +
  315 +# 静态资源服务器地址
  316 +static:
  317 + resource:
  318 + server:
  319 + enable: true
  320 + url: https://test.jichengshanshui.com.cn:4080/downloads/