Zuul找不到服务方法,网页一直报500错误

zuul的版本是2.2.9.RELEASE的
zuul的配置文件:
server:

 port: 9527

spring:
  application:
    name: springcloud-zuul

eureka:
  client:
    service-url:
      defaultZone: http://localhost:7001/eureka/
  instance:
    instance-id: zunl9527
    prefer-ip-address: true  #隐藏真实的ip

management:
  endpoints:
    web:
      exposure:
        include: "*"
info:
  app.name: springcloud

zuul:
  routes:
    deptservice:
      serviceId: springcloud-provider-dept
      path: /mydept/**
  ignored-services: springcloud-provider-dept

主启动类为:


@SpringBootApplication
@EnableEurekaClient
@EnableDiscoveryClient
@EnableZuulProxy
public class ZuulApplication_9527 {
    public static void main(String[] args){
        SpringApplication.run(ZuulApplication_9527.class,args);
    }
}



但访问http://localhost:9527/mydept/dept/get/1一直报500错误,提示我找不到方法,但我可以使用原来的服务
求大家帮忙看看

可能是Netflix zuul不维护了导致的不兼容问题,可以试试springcloud gateway

img
你看下业务服务跟你这个路由路径对不对,然后参照这个试下?

请问解决了吗 我也是遇到500 是版本问题不 我用的2.2.9.RELEASE