spring boot security oauth2 自定义token返回数据结构

1、前后端,微服务给予security oauth2的认证token 授权 默认返回数据结构是 但是我们希望的时候有统一的返回数据格式 查看源码 可以找到    postAccessToken里面处理的数据返回 所以使用 @Around 注解 拦截请求改变返回值 具体代码如下。   @Component @Aspect @Slf4j public class AuthAspectAround {
相关文章
相关标签/搜索