add profile

This commit is contained in:
sxu 2024-08-23 09:25:46 +08:00
parent cab68ff11b
commit b3cc2cb0c6
5 changed files with 90 additions and 4 deletions

View File

@ -1,3 +1,7 @@
# Tomcat
server:
port: 39302
# Spring # Spring
spring: spring:
cloud: cloud:

View File

@ -1,3 +1,7 @@
# Tomcat
server:
port: 39302
# Spring # Spring
spring: spring:
cloud: cloud:

View File

@ -0,0 +1,41 @@
# Tomcat
server:
port: 49302
# Spring
spring:
cloud:
loadbalancer:
# 关闭Ribbon的负载均衡器
ribbon:
enabled: false
# 开启Nacos的负载均衡器
nacos:
enabled: true
nacos:
discovery:
# 服务注册地址
server-addr: 192.168.0.62:8848
namespace: sgzb_cloud_dev_nw
config:
# 配置中心地址
server-addr: 192.168.0.62:8848
namespace: sgzb_cloud_dev_nw
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
# 禁用Actuator端点的未经身份验证的访问
management:
endpoint:
env:
enabled: false
sgzb:
site: nw
job:
settlementJobDay: 1
settlementJobCron: "0 0 1 1 * ?"

View File

@ -0,0 +1,41 @@
# Tomcat
server:
port: 49302
# Spring
spring:
cloud:
loadbalancer:
# 关闭Ribbon的负载均衡器
ribbon:
enabled: false
# 开启Nacos的负载均衡器
nacos:
enabled: true
nacos:
discovery:
# 服务注册地址
server-addr: 127.0.0.1:8848
namespace: sgzb_cloud_dev_nw
config:
# 配置中心地址
server-addr: 127.0.0.1:8848
namespace: sgzb_cloud_dev_nw
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
# 禁用Actuator端点的未经身份验证的访问
management:
endpoint:
env:
enabled: false
sgzb:
site: nw
job:
settlementJobDay: 1
settlementJobCron: "0 0 1 1 * ?"

View File

@ -1,7 +1,3 @@
# Tomcat
server:
port: 39302
# Spring # Spring
spring: spring:
application: application: