The request path generated by spring cloud's feign has no IP and port, and an error of 404 is reported. You must specify a url to access it normally.

the request path generated by feign of spring cloud does not have IP and port. An error of 404 was reported. You must specify url to access it normally

cannot be accessed according to this code, and the generated request is http:/login/username/pwd,. , the service determines that it has registered with the registry

.
@FeignClient(name = "SERVICE-USER")
public interface UserFeign {

    @RequestMapping(value = "/login/{userName}/{pwd}",method = RequestMethod.GET)
    User doLogin(@PathVariable("userName") String userName, @PathVariable("pwd") String pwd);
}
Mar.05,2021

has the problem been solved? I am also the same problem, how to solve it, you can only specify a path to access

Menu