提交修改

This commit is contained in:
quyixiao 2025-10-24 12:28:51 +08:00
parent 896098daab
commit 0026872877
2 changed files with 66 additions and 1 deletions

View File

@ -13,7 +13,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.messaging.handler.annotation.Header;
import org.springframework.messaging.handler.annotation.Payload;
import org.springframework.stereotype.Component;
import java.io.IOException;
import java.util.Date;

View File

@ -0,0 +1,66 @@
spring:
cloud:
nacos:
discovery:
# 服务注册地址
#server-addr: 192.168.8.146:32470
#server-addr: 120.26.162.237:30571
server-addr: nacos.iwulin.tech:30571
namespace: ${spring.profiles.active}
password: hz_HeYu@202518
config:
namespace: ${spring.profiles.active}
# 配置中心地址
#server-addr: 192.168.8.146:32470
#server-addr: 120.26.162.237:30571
server-addr: nacos.iwulin.tech:30571
password: hz_HeYu@202518
# 配置文件格式
file-extension: yml
# 共享配置
#shared-configs:
# - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.jdbc.Driver
druid:
url: jdbc:mysql://121.40.41.240:3306/heyu_api?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: heyu_api
password: 'Ro_d39PlM^#8^f!2'
initial-size: 10
max-active: 10
min-idle: 5
max-wait: 60000
pool-prepared-statements: true
max-pool-prepared-statement-per-connection-size: 20
time-between-eviction-runs-millis: 60000
min-evictable-idle-time-millis: 300000
#Oracle需要打开注释
validation-query: SELECT 1
test-while-idle: true
test-on-borrow: false
test-on-return: false
filter:
stat:
log-slow-sql: true
slow-sql-millis: 1000
merge-sql: false
wall:
config:
multi-statement-allow: true
redis:
password: A_kMn84#@^_Lmc
port: 6379
host: 121.40.41.240
timeout: 5000
rabbitmq:
host: 121.40.41.240
port: 5672
username: admin
password: XiIg37HKfQg2
# rabbitmq:
# host: rabit.iwulin.tech
# port: 32407
# username: admin
# password: Ij_klfJ^$^_3IBs