From 9cda9301d5214e5ea6790cb31c025adf57d919ed Mon Sep 17 00:00:00 2001 From: hetianchen <604582768@qq.com> Date: Wed, 16 Dec 2020 22:25:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E7=8E=AF=E5=A2=83=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 513 ++++++++++-------- ruoyi-auth/src/main/resources/bootstrap.yml | 16 +- .../src/main/resources/bootstrap.yml | 20 +- .../src/main/resources/bootstrap.yml | 16 +- .../src/main/resources/bootstrap.yml | 16 +- .../src/main/resources/bootstrap.yml | 16 +- .../src/main/resources/bootstrap.yml | 16 +- .../src/main/resources/bootstrap.yml | 16 +- 8 files changed, 369 insertions(+), 260 deletions(-) diff --git a/pom.xml b/pom.xml index c81c7b0b..3ded29ed 100644 --- a/pom.xml +++ b/pom.xml @@ -1,238 +1,277 @@ - - - 4.0.0 - - com.ruoyi - ruoyi - 2.3.0 - - ruoyi - http://www.ruoyi.vip - 若依微服务系统 - - - 2.3.0 - UTF-8 - UTF-8 - 1.8 - 2.3.4.RELEASE - Hoxton.SR8 - 2.2.3.RELEASE - 2.3.0 - 2.1.3 - 2.9.2 - 1.5.24 - 1.26.5 - 2.3.2 - 1.3.0 - 2.5 - 1.3.3 - 1.7 - 1.2.74 - 4.1.2 - 2.6.2 - - - - - - - - - org.springframework.cloud - spring-cloud-dependencies - ${spring-cloud.version} - pom - import - - - - - com.alibaba.cloud - spring-cloud-alibaba-dependencies - ${spring-cloud-alibaba.version} - pom - import - - - - - org.springframework.boot - spring-boot-dependencies - ${spring-boot.version} - pom - import - - - - - de.codecentric - spring-boot-admin-starter-client - ${spring-boot-admin.version} - - - - - com.github.tobato - fastdfs-client - ${tobato.version} - - - - - org.mybatis.spring.boot - mybatis-spring-boot-starter - ${spring-boot.mybatis} - - - - - io.swagger - swagger-models - ${swagger.core.version} - - - io.swagger - swagger-annotations - ${swagger.core.version} - - - - - com.github.penggle - kaptcha - ${kaptcha.version} - - - - - com.github.pagehelper - pagehelper-spring-boot-starter - ${pagehelper.boot.version} - - - - - commons-io - commons-io - ${commons.io.version} - - - - - org.apache.poi - poi-ooxml - ${poi.version} - - - - - commons-fileupload - commons-fileupload - ${commons.fileupload.version} - - - - - org.apache.velocity - velocity - ${velocity.version} - - - - - com.alibaba - fastjson - ${fastjson.version} - - - - - org.apache.commons - commons-pool2 - ${common-pool.version} - - - - - com.ruoyi - ruoyi-common-core - ${ruoyi.version} - - - - - com.ruoyi - ruoyi-common-swagger - ${ruoyi.version} - - - - - com.ruoyi - ruoyi-common-security - ${ruoyi.version} - - - - - com.ruoyi - ruoyi-common-datascope - ${ruoyi.version} - - - - - com.ruoyi - ruoyi-common-log - ${ruoyi.version} - - - - - com.ruoyi - ruoyi-common-redis - ${ruoyi.version} - - - - - com.ruoyi - ruoyi-api-system - ${ruoyi.version} - - - - - - - ruoyi-auth - ruoyi-gateway - ruoyi-visual - ruoyi-modules - ruoyi-api - ruoyi-common - - pom - - - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - - ${java.version} - ${java.version} - ${project.build.sourceEncoding} - - - - - + + + 4.0.0 + + com.ruoyi + ruoyi + 2.3.0 + + ruoyi + http://www.ruoyi.vip + 若依微服务系统 + + + 2.3.0 + UTF-8 + UTF-8 + 1.8 + 2.3.4.RELEASE + Hoxton.SR8 + 2.2.3.RELEASE + 2.3.0 + 2.1.3 + 2.9.2 + 1.5.24 + 1.26.5 + 2.3.2 + 1.3.0 + 2.5 + 1.3.3 + 1.7 + 1.2.74 + 4.1.2 + 2.6.2 + + + + + + + + + org.springframework.cloud + spring-cloud-dependencies + ${spring-cloud.version} + pom + import + + + + + com.alibaba.cloud + spring-cloud-alibaba-dependencies + ${spring-cloud-alibaba.version} + pom + import + + + + + org.springframework.boot + spring-boot-dependencies + ${spring-boot.version} + pom + import + + + + + de.codecentric + spring-boot-admin-starter-client + ${spring-boot-admin.version} + + + + + com.github.tobato + fastdfs-client + ${tobato.version} + + + + + org.mybatis.spring.boot + mybatis-spring-boot-starter + ${spring-boot.mybatis} + + + + + io.swagger + swagger-models + ${swagger.core.version} + + + io.swagger + swagger-annotations + ${swagger.core.version} + + + + + com.github.penggle + kaptcha + ${kaptcha.version} + + + + + com.github.pagehelper + pagehelper-spring-boot-starter + ${pagehelper.boot.version} + + + + + commons-io + commons-io + ${commons.io.version} + + + + + org.apache.poi + poi-ooxml + ${poi.version} + + + + + commons-fileupload + commons-fileupload + ${commons.fileupload.version} + + + + + org.apache.velocity + velocity + ${velocity.version} + + + + + com.alibaba + fastjson + ${fastjson.version} + + + + + org.apache.commons + commons-pool2 + ${common-pool.version} + + + + + com.ruoyi + ruoyi-common-core + ${ruoyi.version} + + + + + com.ruoyi + ruoyi-common-swagger + ${ruoyi.version} + + + + + com.ruoyi + ruoyi-common-security + ${ruoyi.version} + + + + + com.ruoyi + ruoyi-common-datascope + ${ruoyi.version} + + + + + com.ruoyi + ruoyi-common-log + ${ruoyi.version} + + + + + com.ruoyi + ruoyi-common-redis + ${ruoyi.version} + + + + + com.ruoyi + ruoyi-api-system + ${ruoyi.version} + + + + + + + ruoyi-auth + ruoyi-gateway + ruoyi-visual + ruoyi-modules + ruoyi-api + ruoyi-common + + pom + + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + ${java.version} + ${java.version} + ${project.build.sourceEncoding} + + + + + + + + ${project.basedir}/src/main/resources + + bootstrap.yml + **/*.xml + + + true + + + + + + + + + dev + + dev + 127.0.0.1:8848 + 127.0.0.1:8848 + 5c8aa4bc-b36e-490a-9f5f-1c13d310caf5 + + + true + + + + pro + + pro + 127.0.0.1:8848 + 127.0.0.1:8848 + 5c8aa4bc-b36e-490a-9f5f-1c13d310caf5 + + + + \ No newline at end of file diff --git a/ruoyi-auth/src/main/resources/bootstrap.yml b/ruoyi-auth/src/main/resources/bootstrap.yml index 037cd7a7..27f526ea 100644 --- a/ruoyi-auth/src/main/resources/bootstrap.yml +++ b/ruoyi-auth/src/main/resources/bootstrap.yml @@ -9,15 +9,25 @@ spring: name: ruoyi-auth profiles: # 环境配置 - active: dev + active: @profile.active@ cloud: nacos: + # 注册中心 discovery: # 服务注册地址 - server-addr: 127.0.0.1:8848 + server-addr: @discovery.server-addr@ + # 配置命名空间 + namespace: @config.namespaceId@ + # 配置groupID + group: ${spring.profiles.active} + # 配置中心 config: # 配置中心地址 - server-addr: 127.0.0.1:8848 + server-addr: @config.server-addr@ + # 配置命名空间 + namespace: @config.namespaceId@ + # 配置groupID + group: ${spring.profiles.active} # 配置文件格式 file-extension: yml # 共享配置 diff --git a/ruoyi-gateway/src/main/resources/bootstrap.yml b/ruoyi-gateway/src/main/resources/bootstrap.yml index 5f9f269e..ae9a5d94 100644 --- a/ruoyi-gateway/src/main/resources/bootstrap.yml +++ b/ruoyi-gateway/src/main/resources/bootstrap.yml @@ -9,17 +9,27 @@ spring: name: ruoyi-gateway profiles: # 环境配置 - active: dev + active: @profile.active@ main: allow-bean-definition-overriding: true cloud: nacos: + # 注册中心 discovery: # 服务注册地址 - server-addr: 127.0.0.1:8848 + server-addr: @discovery.server-addr@ + # 配置命名空间 + namespace: @config.namespaceId@ + # 配置groupID + group: ${spring.profiles.active} + # 配置中心 config: # 配置中心地址 - server-addr: 127.0.0.1:8848 + server-addr: @config.server-addr@ + # 配置命名空间 + namespace: @config.namespaceId@ + # 配置groupID + group: ${spring.profiles.active} # 配置文件格式 file-extension: yml # 共享配置 @@ -34,8 +44,8 @@ spring: datasource: ds1: nacos: - server-addr: 127.0.0.1:8848 + server-addr: @config.server-addr@ dataId: sentinel-ruoyi-gateway - groupId: DEFAULT_GROUP + groupId: ${spring.profiles.active} data-type: json rule-type: flow diff --git a/ruoyi-modules/ruoyi-file/src/main/resources/bootstrap.yml b/ruoyi-modules/ruoyi-file/src/main/resources/bootstrap.yml index 51520521..33449ace 100644 --- a/ruoyi-modules/ruoyi-file/src/main/resources/bootstrap.yml +++ b/ruoyi-modules/ruoyi-file/src/main/resources/bootstrap.yml @@ -9,15 +9,25 @@ spring: name: ruoyi-file profiles: # 环境配置 - active: dev + active: @profile.active@ cloud: nacos: + # 注册中心 discovery: # 服务注册地址 - server-addr: 127.0.0.1:8848 + server-addr: @discovery.server-addr@ + # 配置命名空间 + namespace: @config.namespaceId@ + # 配置groupID + group: ${spring.profiles.active} + # 配置中心 config: # 配置中心地址 - server-addr: 127.0.0.1:8848 + server-addr: @config.server-addr@ + # 配置命名空间 + namespace: @config.namespaceId@ + # 配置groupID + group: ${spring.profiles.active} # 配置文件格式 file-extension: yml # 共享配置 diff --git a/ruoyi-modules/ruoyi-gen/src/main/resources/bootstrap.yml b/ruoyi-modules/ruoyi-gen/src/main/resources/bootstrap.yml index 752cdbdf..8627333f 100644 --- a/ruoyi-modules/ruoyi-gen/src/main/resources/bootstrap.yml +++ b/ruoyi-modules/ruoyi-gen/src/main/resources/bootstrap.yml @@ -9,15 +9,25 @@ spring: name: ruoyi-gen profiles: # 环境配置 - active: dev + active: @profile.active@ cloud: nacos: + # 注册中心 discovery: # 服务注册地址 - server-addr: 127.0.0.1:8848 + server-addr: @discovery.server-addr@ + # 配置命名空间 + namespace: @config.namespaceId@ + # 配置groupID + group: ${spring.profiles.active} + # 配置中心 config: # 配置中心地址 - server-addr: 127.0.0.1:8848 + server-addr: @config.server-addr@ + # 配置命名空间 + namespace: @config.namespaceId@ + # 配置groupID + group: ${spring.profiles.active} # 配置文件格式 file-extension: yml # 共享配置 diff --git a/ruoyi-modules/ruoyi-job/src/main/resources/bootstrap.yml b/ruoyi-modules/ruoyi-job/src/main/resources/bootstrap.yml index 480a180f..6bc09c00 100644 --- a/ruoyi-modules/ruoyi-job/src/main/resources/bootstrap.yml +++ b/ruoyi-modules/ruoyi-job/src/main/resources/bootstrap.yml @@ -9,15 +9,25 @@ spring: name: ruoyi-job profiles: # 环境配置 - active: dev + active: @profile.active@ cloud: nacos: + # 注册中心 discovery: # 服务注册地址 - server-addr: 127.0.0.1:8848 + server-addr: @discovery.server-addr@ + # 配置命名空间 + namespace: @config.namespaceId@ + # 配置groupID + group: ${spring.profiles.active} + # 配置中心 config: # 配置中心地址 - server-addr: 127.0.0.1:8848 + server-addr: @config.server-addr@ + # 配置命名空间 + namespace: @config.namespaceId@ + # 配置groupID + group: ${spring.profiles.active} # 配置文件格式 file-extension: yml # 共享配置 diff --git a/ruoyi-modules/ruoyi-system/src/main/resources/bootstrap.yml b/ruoyi-modules/ruoyi-system/src/main/resources/bootstrap.yml index 554d7979..de3bd221 100644 --- a/ruoyi-modules/ruoyi-system/src/main/resources/bootstrap.yml +++ b/ruoyi-modules/ruoyi-system/src/main/resources/bootstrap.yml @@ -9,15 +9,25 @@ spring: name: ruoyi-system profiles: # 环境配置 - active: dev + active: @profile.active@ cloud: nacos: + # 注册中心 discovery: # 服务注册地址 - server-addr: 127.0.0.1:8848 + server-addr: @discovery.server-addr@ + # 配置命名空间 + namespace: @config.namespaceId@ + # 配置groupID + group: ${spring.profiles.active} + # 配置中心 config: # 配置中心地址 - server-addr: 127.0.0.1:8848 + server-addr: @config.server-addr@ + # 配置命名空间 + namespace: @config.namespaceId@ + # 配置groupID + group: ${spring.profiles.active} # 配置文件格式 file-extension: yml # 共享配置 diff --git a/ruoyi-visual/ruoyi-monitor/src/main/resources/bootstrap.yml b/ruoyi-visual/ruoyi-monitor/src/main/resources/bootstrap.yml index ec9acb3a..a9117e60 100644 --- a/ruoyi-visual/ruoyi-monitor/src/main/resources/bootstrap.yml +++ b/ruoyi-visual/ruoyi-monitor/src/main/resources/bootstrap.yml @@ -9,15 +9,25 @@ spring: name: ruoyi-monitor profiles: # 环境配置 - active: dev + active: @profile.active@ cloud: nacos: + # 注册中心 discovery: # 服务注册地址 - server-addr: 127.0.0.1:8848 + server-addr: @discovery.server-addr@ + # 配置命名空间 + namespace: @config.namespaceId@ + # 配置groupID + group: ${spring.profiles.active} + # 配置中心 config: # 配置中心地址 - server-addr: 127.0.0.1:8848 + server-addr: @config.server-addr@ + # 配置命名空间 + namespace: @config.namespaceId@ + # 配置groupID + group: ${spring.profiles.active} # 配置文件格式 file-extension: yml # 共享配置