主要微服务(gateway、system、mgn、exec)打包方式修改:

1、支持根据profile打包不同配置在jar外;
2、依赖lib打包在jar外;
3、增加test相关配置;
This commit is contained in:
gaoqr
2024-06-17 18:47:52 +08:00
parent 8b6e329a80
commit f0792baff4
17 changed files with 347 additions and 14 deletions
@@ -0,0 +1,4 @@
spring:
main:
allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。
allow-bean-definition-overriding: true # 允许 Bean 覆盖,例如说 Feign 等会存在重复定义的服务
@@ -0,0 +1,25 @@
--- #################### 注册中心相关配置 ####################
spring:
cloud:
nacos:
server-addr: 192.168.1.204:8848
username: nacos
password: nacos
discovery:
namespace: imes-test # 命名空间。这里使用 dev 开发环境
metadata:
version: 1.0.0 # 服务实例的版本号,可用于灰度发布
--- #################### 配置中心相关配置 ####################
spring:
cloud:
nacos:
# Nacos Config 配置项,对应 NacosConfigProperties 配置属性类
config:
server-addr: 192.168.1.204:8848 # Nacos 服务器地址
namespace: imes-test # 命名空间 dev 的ID,不能直接使用 dev 名称。创建命名空间的时候需要指定ID为 dev,这里使用 dev 开发环境
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
name: ${spring.application.name} # 使用的 Nacos 配置集的 dataId,默认为 spring.application.name
file-extension: yaml # 使用的 Nacos 配置集的 dataId 的文件拓展名,同时也是 Nacos 配置集的配置格式,默认为 properties