05 2021 档案

摘要:找到产生冲突的依赖,通过exclusion标签将其移除 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-oauth2-resource-server</artifactI 阅读全文
posted @ 2021-05-30 22:54 复一日 阅读(49) 评论(0) 推荐(0) 编辑
摘要:授权服务器目标接口 @RequestMapping( value = {"/oauth/token"}, method = {RequestMethod.POST} ) public ResponseEntity<OAuth2AccessToken> postAccessToken(Principa 阅读全文
posted @ 2021-05-30 18:15 复一日 阅读(916) 评论(0) 推荐(0) 编辑
摘要:cloud 进行服务间调用时通常需要添加token作为请求头,下面是我自己的解决方案 @Autowired OauthClient oauthClient; /** * 通过服务名调用 */ private static final String OAUTH_URL = "http://sclp-o 阅读全文
posted @ 2021-05-29 20:27 复一日 阅读(2285) 评论(0) 推荐(0) 编辑
摘要:无法扫描到接口实现,'com.sclp.mapper.GenTableMapper' that could not be found. Description: Field genTableService in com.sclp.controller.GenController required a 阅读全文
posted @ 2021-05-21 15:56 复一日 阅读(1558) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示