Commit 8887ea61 by tyfanchz

修改:多配置中心问题

1 parent cfc7681b
...@@ -15,7 +15,7 @@ import org.springframework.web.bind.annotation.RestController; ...@@ -15,7 +15,7 @@ import org.springframework.web.bind.annotation.RestController;
* @Title: IndexController.java * @Title: IndexController.java
* @Description: 远程服务调用demo * @Description: 远程服务调用demo
* @author think.wang * @author think.wang
* @version V1.0 * @version V1.0
* @Company: Didihu.com.cn * @Company: Didihu.com.cn
* @Copyright Copyright (c) 2017 * @Copyright Copyright (c) 2017
*/ */
...@@ -25,9 +25,9 @@ public class IndexController { ...@@ -25,9 +25,9 @@ public class IndexController {
@Autowired @Autowired
private IndexFeignClient indexFeignClient; private IndexFeignClient indexFeignClient;
@DubboReference(version = "1.0.0") @DubboReference(version = "1.0.0", registry = {"biz-user"})
private UserService userService; private UserService userService;
@ResponseBody @ResponseBody
@RequestMapping("home") @RequestMapping("home")
public R home(){ public R home(){
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!