Parcourir la source

fix feign pathvariable error

huodongdong il y a 6 ans
Parent
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 {