OAuth2.0,使用postman测试获取token一直报错,
错误如下:
idea后台错误:
2020-08-26 18:06:42.127 WARN 796 --- [nio-9200-exec-1] o.s.s.o.provider.endpoint.TokenEndpoint : Handling error: InternalAuthenticationServiceException, status 404 reading UserFeign#findUserById(String)
2020-08-26 18:06:43.031 INFO 796 --- [erListUpdater-0] c.netflix.config.ChainedDynamicProperty : Flipping property: user.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647
user微服务下的feign接口
@FeignClient(name = "user")
public interface UserFeign {
@GetMapping("/user/load/{username}")
User findUserById(@PathVariable("username") String username);
}
OAuth启动类:
@SpringBootApplication
@EnableDiscoveryClient
@MapperScan(basePackages = "com.gongsibao.auth.dao")
@EnableFeignClients(basePackages = "com.gongsibao.user.feign")
public class OAuthApplication {
public static void main(String[] args) {
SpringApplication.run(OAuthApplication.class,args);
}
@Bean
public RestTemplate restTemplate(){
return new RestTemplate();
}
}
有没有大佬知道大概是哪里的问题吗???