@FeignClient(name = "passport-service", url = "http://100.66.178.33:8089/passport")
public interface PassportServiceApi {
@RequestMapping(value = "/api/auths/token/{username}", method = RequestMethod.GET)
AbstractResult getTokenByUsername(@PathVariable("username") String username);
}
1
CYKun Feb 22, 2018 via Android 不要把 ip 贴出来啊
|
2
LeeSeoung Feb 22, 2018
服务中心配了?
|
3
jych1224 Feb 22, 2018
不是一定要 URL,可以使用注册中心,使用服务名代替
|
6
sghcel Feb 22, 2018
没有使用服务配置中心吧
|
8
jameslan Feb 23, 2018 via Android
检查服务注册好了?
|
11
Narcissu5 Feb 23, 2018
用 EurekaClient 或者 DiscoveryClient 的 getInstance 方法,看下能不能得到地址,可能是服务注册发现没有配置好。比如少了一些 Enable
|
12
shawshi Feb 24, 2018
先判断注册中心有没有这两个服务?
|