配置文件

This commit is contained in:
mashuai 2024-11-22 09:39:07 +08:00
parent 1652eac0c5
commit 55fe18c5f2
2 changed files with 28 additions and 2 deletions

View File

@ -0,0 +1,26 @@
# Tomcat
server:
port: 18589
# Spring
spring:
cloud:
nacos:
discovery:
# 服务注册地址
server-addr: 127.0.0.1:8848
namespace: material_mall
config:
# 配置中心地址
server-addr: 127.0.0.1:8848
namespace: material_mall
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
#加密组件
jasypt:
encryptor:
password: Encrypt

View File

@ -2,7 +2,7 @@
spring:
application:
# 应用名称
name: bonus-material-screen
name: bonus-material-mall
profiles:
# 环境配置
active: sgzb_bns_local
active: material_mall_local