Quellcode durchsuchen

fix feign pathvariable error

huodongdong vor 6 Jahren
Ursprung
Commit
a7c33c52fe

+ 1 - 1
rankin-api-web/src/main/java/cn/rankin/apiweb/service/user/UserClient.java

@@ -32,7 +32,7 @@ public interface UserClient {
     APIResult<TerminalDeviceVo> findByDeviceCode(@PathVariable("deviceCode") String deviceCode);
 
     @RequestMapping(value = "/white/user/{userId}", method = RequestMethod.GET)
-    APIResult<WhiteUserVo> findWhiteUserById(@PathVariable String userId);
+    APIResult<WhiteUserVo> findWhiteUserById(@PathVariable("userId") String userId);
 
     @Component
     class UserServiceHystrix implements UserClient {