zuul访问eureka出现wro.css和wro.js 404的解决方法

专门为eureka的静态文件配置转发规则即可,
如下,请根据实际情况修改自己的serviceId和path

zuul:
  routes:
    eureka_server:
      path: /eureka_server/**
      serviceId: eureka_server
      stripPrefix: true
      custom-sensitive-headers: true
    eureka_server_static:
      path: /eureka/**
      serviceId: eureka_server
      stripPrefix: false
      custom-sensitive-headers: true

你可能感兴趣的:(spring,cloud,java,ee)