瀏覽代碼

fix feign pathvariable error

huodongdong 6 年之前
父節點
當前提交
a7c33c52fe
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rankin-api-web/src/main/java/cn/rankin/apiweb/service/user/UserClient.java

+ 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 {