fuyongxin
2026-06-03 00e0dbbf98347b1e47a7e0aedd41baa61f7567ed
修改配置nacos,后端gateway端口
4 files modified
20 ■■■■ changed files
ruoyi-auth/src/main/resources/bootstrap.yml 4 ●●●● patch | view | raw | blame | history
ruoyi-gateway/src/main/resources/bootstrap.yml 10 ●●●● patch | view | raw | blame | history
ruoyi-modules/ruoyi-system/src/main/resources/bootstrap.yml 4 ●●●● patch | view | raw | blame | history
ruoyi-ui/vue.config.js 2 ●●● patch | view | raw | blame | history
ruoyi-auth/src/main/resources/bootstrap.yml
@@ -15,9 +15,13 @@
      discovery:
        # 服务注册地址
        server-addr: 127.0.0.1:8848
        username: nacos
        password: nacos
      config:
        # 配置中心地址
        server-addr: 127.0.0.1:8848
        username: nacos
        password: nacos
  config:
    # 配置文件格式
    file-extension: yml
ruoyi-gateway/src/main/resources/bootstrap.yml
@@ -1,6 +1,6 @@
# Tomcat
server:
  port: 8080
  port: 18080
# Spring
spring: 
@@ -15,9 +15,13 @@
      discovery:
        # 服务注册地址
        server-addr: 127.0.0.1:8848
        username: nacos
        password: nacos
      config:
        # 配置中心地址
        server-addr: 127.0.0.1:8848
        username: nacos
        password: nacos
    sentinel:
      # 取消控制台懒加载
      eager: true
@@ -37,5 +41,5 @@
    # 配置文件格式
    file-extension: yml
    import:
      - nacos:application-${spring.profiles.active}.${spring.config.file-extension}
      - nacos:${spring.application.name}-${spring.profiles.active}.${spring.config.file-extension}
      - optional:nacos:application-${spring.profiles.active}.${spring.config.file-extension}
      - optional:nacos:${spring.application.name}-${spring.profiles.active}.${spring.config.file-extension}
ruoyi-modules/ruoyi-system/src/main/resources/bootstrap.yml
@@ -15,9 +15,13 @@
      discovery:
        # 服务注册地址
        server-addr: 127.0.0.1:8848
        username: nacos
        password: nacos
      config:
        # 配置中心地址
        server-addr: 127.0.0.1:8848
        username: nacos
        password: nacos
  config:
    # 配置文件格式
    file-extension: yml
ruoyi-ui/vue.config.js
@@ -34,7 +34,7 @@
    proxy: {
      // detail: https://cli.vuejs.org/config/#devserver-proxy
      [process.env.VUE_APP_BASE_API]: {
        target: `http://localhost:8080`,
        target: `http://localhost:18080`,
        changeOrigin: true,
        pathRewrite: {
          ['^' + process.env.VUE_APP_BASE_API]: ''