关于使用GATEWAY后静态资源失效问题
参考:https://www.freesion.com/article/5956453278/

第二种方式(推荐):配置文件方式

贴出主要配置:/static/**表示对静态资源的路由

routes:
        - id: home-service
          uri: lb://home-service #lb表示从注册中心找到服务
          predicates: #路由规则
            - Path=/home-service/**, /static/**
        - id: user-service
          uri: lb://user-service
          predicates:
            - Path=/user-service/**, /static/**


相关文章:

  • 2021-10-17
  • 2022-01-05
  • 2021-07-13
  • 2022-12-23
  • 2022-01-06
  • 2022-12-23
  • 2021-05-25
  • 2021-05-24
猜你喜欢
  • 2021-09-19
  • 2021-08-10
  • 2022-12-23
  • 2021-04-16
  • 2021-11-20
  • 2021-06-13
  • 2022-12-23
相关资源
相似解决方案