Files
sczx_order/src/main/resources/application.yml

82 lines
1.8 KiB
YAML
Raw Normal View History

2025-07-02 02:28:19 +08:00
server:
port: 8088
spring:
application:
2025-07-19 20:22:06 +08:00
name: sczx-order # 微服务名称
2025-07-02 02:28:19 +08:00
http:
encoding:
charset: UTF-8
enabled: true
force: true
mvc:
async:
request-timeout: -1
cloud:
nacos:
discovery:
2025-07-02 23:29:48 +08:00
server-addr: 115.190.8.52:8848 # Nacos 地址
group: DEFAULT_GROUP
metadata:
version: 1.0.0
env: dev
2025-07-19 20:22:06 +08:00
lifecycle:
timeout-per-shutdown-phase: 30s # 设置优雅停机时间
2025-07-02 02:28:19 +08:00
datasource:
url: jdbc:mysql://115.190.8.52:3306/sczx?useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
username: sczx_user
password: Sczx123@
driver-class-name: com.mysql.cj.jdbc.Driver
hikari:
maximum-pool-size: 10
auto-commit: true
2025-07-19 20:22:06 +08:00
redis:
host: 115.190.8.52
port: 6379
lettuce:
pool:
max-active: 8
max-wait: 2000ms
max-idle: 4
min-idle: 1
max-life-time: 300000ms
2025-07-02 02:28:19 +08:00
management:
endpoints:
web:
exposure:
include: "*" # 暴露所有监控端点
endpoint:
health:
show-details: always
feign:
client:
config:
default:
connectTimeout: 5000
readTimeout: 5000
hystrix:
enabled: true # 启用 Feign 的 Hystrix 支持
hystrix:
command:
default:
execution:
isolation:
thread:
timeoutInMilliseconds: 10000 # 默认熔断超时时间
2025-07-03 00:31:56 +08:00
mybatis-plus:
mapper-locations: classpath*:mapper/**/*.xml
2025-07-19 20:22:06 +08:00
type-aliases-package: com.sczx.order.po # 实体类包路径
2025-07-03 00:31:56 +08:00
configuration:
mapUnderscoreToCamelCase: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 控制台打印 SQL调试用
2025-07-19 20:22:06 +08:00
auth:
secret-key: his-is-a-very-long-and-secure-secret-key-for-jwt-signing-please-dont-use-short-keys
token-expiration: 86400000 # 24小时