2026-01-09 14:35:43 +08:00
|
|
|
# Tomcat
|
|
|
|
|
server:
|
|
|
|
|
port: 9201
|
|
|
|
|
|
|
|
|
|
# Spring
|
|
|
|
|
spring:
|
|
|
|
|
application:
|
|
|
|
|
# 应用名称
|
|
|
|
|
name: tuoheng-device
|
|
|
|
|
profiles:
|
|
|
|
|
# 环境配置
|
|
|
|
|
active: prod
|
2026-01-15 17:05:26 +08:00
|
|
|
flyway:
|
|
|
|
|
table: flyway_device_schema_history # 自定义历史表名
|
|
|
|
|
baseline-on-migrate: true # 在nocos中也有配置
|
2026-01-16 19:38:06 +08:00
|
|
|
baseline-version: 0 # 在nocos中也有配置
|
2026-01-09 14:35:43 +08:00
|
|
|
cloud:
|
|
|
|
|
nacos:
|
|
|
|
|
discovery:
|
|
|
|
|
# 服务注册地址
|
|
|
|
|
server-addr: ruoyi-nacos:8848
|
|
|
|
|
config:
|
|
|
|
|
# 配置中心地址
|
|
|
|
|
server-addr: ruoyi-nacos:8848
|
|
|
|
|
# 配置文件格式
|
|
|
|
|
file-extension: yml
|
|
|
|
|
# 共享配置
|
|
|
|
|
shared-configs:
|
|
|
|
|
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|