diff --git a/urbanops-server/src/main/resources/application-prod.yaml b/urbanops-server/src/main/resources/application-prod.yaml index 8168222..885b46d 100644 --- a/urbanops-server/src/main/resources/application-prod.yaml +++ b/urbanops-server/src/main/resources/application-prod.yaml @@ -1,18 +1,14 @@ server: - port: 58080 + port: 48081 --- #################### 数据库相关配置 #################### + spring: autoconfigure: # noinspection SpringBootApplicationYaml exclude: - - com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure # 排除 Druid 的自动配置,使用 dynamic-datasource-spring-boot-starter 配置多数据源 - - org.springframework.boot.autoconfigure.quartz.QuartzAutoConfiguration # 默认 local 环境,不开启 Quartz 的自动配置 - - de.codecentric.boot.admin.server.config.AdminServerAutoConfiguration # 禁用 Spring Boot Admin 的 Server 的自动配置 - - de.codecentric.boot.admin.server.ui.config.AdminServerUiAutoConfiguration # 禁用 Spring Boot Admin 的 Server UI 的自动配置 - - de.codecentric.boot.admin.client.config.SpringBootAdminClientAutoConfiguration # 禁用 Spring Boot Admin 的 Client 的自动配置 - - org.springframework.ai.autoconfigure.vectorstore.qdrant.QdrantVectorStoreAutoConfiguration # 禁用 AI 模块的 Qdrant,手动创建 - - org.springframework.ai.autoconfigure.vectorstore.milvus.MilvusVectorStoreAutoConfiguration # 禁用 AI 模块的 Milvus,手动创建 + - org.springframework.ai.vectorstore.qdrant.autoconfigure.QdrantVectorStoreAutoConfiguration # 禁用 AI 模块的 Qdrant,手动创建 + - org.springframework.ai.vectorstore.milvus.autoconfigure.MilvusVectorStoreAutoConfiguration # 禁用 AI 模块的 Milvus,手动创建 # 数据源配置项 datasource: druid: # Druid 【监控】相关的全局配置 @@ -50,20 +46,20 @@ spring: datasource: #driver-class-name: com.mysql.cj.jdbc.Driver master: - url: jdbc:mysql://172.172.11.63:3306/smart_city?useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=UTC - username: smart_city - password: Zteits@qwe + url: jdbc:mysql://172.172.11.79:3306/urban_ops_agent?useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=UTC + username: root + password: mysql2026!prod slave: # 模拟从库,可根据自己需要修改 lazy: true # 开启懒加载,保证启动速度 - url: jdbc:mysql://172.172.11.63:3306/smart_city?useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=UTC - username: smart_city - password: Zteits@qwe + url: jdbc:mysql://172.172.11.79:3306/urban_ops_agent?useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=UTC + username: root + password: mysql2026!prod # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优 data: redis: - host: 172.172.11.47 - password: redis2025!prod + host: 172.172.11.78 + password: redis2026!prod database: 9 port: 6379 jedis: @@ -78,7 +74,7 @@ spring: # Quartz 配置项,对应 QuartzProperties 配置类 spring: quartz: - auto-startup: true # 本地开发环境,尽量不要开启 Job + auto-startup: true # 测试环境,需要开启 Job scheduler-name: schedulerName # Scheduler 名字。默认为 schedulerName job-store-type: jdbc # Job 存储器类型。默认为 memory 表示内存,可选 jdbc 使用数据库。 wait-for-jobs-to-complete-on-shutdown: true # 应用关闭时,是否等待定时任务执行完成。默认为 false ,建议设置为 true @@ -161,21 +157,22 @@ logging: com.zteits.module.infra.dal.mysql.logger.ApiErrorLogMapper: INFO # 配置 ApiErrorLogMapper 的日志级别为 info,避免和 GlobalExceptionHandler 重复打印 com.zteits.module.infra.dal.mysql.job.JobLogMapper: INFO # 配置 JobLogMapper 的日志级别为 info com.zteits.module.infra.dal.mysql.file.FileConfigMapper: INFO # 配置 FileConfigMapper 的日志级别为 info - com.zteits.module.pay.dal.mysql: debug - com.zteits.module.pay.dal.mysql.notify.PayNotifyTaskMapper: INFO # 配置 PayNotifyTaskMapper 的日志级别为 info + #com.zteits.module.pay.dal.mysql: debug + #com.zteits.module.pay.dal.mysql.notify.PayNotifyTaskMapper: INFO # 配置 PayNotifyTaskMapper 的日志级别为 info com.zteits.module.system.dal.mysql: debug com.zteits.module.system.dal.mysql.sms.SmsChannelMapper: INFO # 配置 SmsChannelMapper 的日志级别为 info com.zteits.module.tool.dal.mysql: debug - com.zteits.module.member.dal.mysql: debug - com.zteits.module.trade.dal.mysql: debug - com.zteits.module.promotion.dal.mysql: debug - com.zteits.module.statistics.dal.mysql: debug - com.zteits.module.crm.dal.mysql: debug - com.zteits.module.erp.dal.mysql: debug - com.zteits.module.iot.dal.mysql: debug - com.zteits.module.iot.dal.tdengine: DEBUG - com.zteits.module.ai.dal.mysql: debug - org.springframework.context.support.PostProcessorRegistrationDelegate: ERROR # TODO 芋艿:先禁用,Spring Boot 3.X 存在部分错误的 WARN 提示 + com.zteits.module.workorder.dal.mysql: debug + #com.zteits.module.member.dal.mysql: debug + #com.zteits.module.trade.dal.mysql: debug + #com.zteits.module.promotion.dal.mysql: debug + #com.zteits.module.statistics.dal.mysql: debug + #com.zteits.module.crm.dal.mysql: debug + #com.zteits.module.erp.dal.mysql: debug + #com.zteits.module.iot.dal.mysql: debug + #com.zteits.module.iot.dal.tdengine: DEBUG + #com.zteits.module.ai.dal.mysql: debug + #org.springframework.context.support.PostProcessorRegistrationDelegate: ERROR # TODO 芋艿:先禁用,Spring Boot 3.X 存在部分错误的 WARN 提示 debug: false @@ -314,3 +311,10 @@ amap: # 数字签名配置 - 请根据实际情况配置 enable-signature: true # 启用数字签名 private-key: b2bae35d223a9fc0704f8ad24b2595b4 + +# 静态资源服务器地址 +static: + resource: + server: + enable: true + url: https://test.jichengshanshui.com.cn:4080/downloads/