摘要: 1、新建一个拦截类 @Component public class LoginInterceptor implements HandlerInterceptor { @Autowired private JwtUtil jwtUtil; @Value("${oaTokenKeyword}") pri 阅读全文
posted @ 2024-10-11 16:55 信铁寒胜 阅读(204) 评论(0) 推荐(0)
摘要: 为什么要使用produces="text/plain;charset=UTF-8"? 当不用这个配置时,接口返回的数据,是有斜杠的 配置后,就正常了 以前我的配置方式,是在每个接口上,都添加上produces="text/plain;charset=UTF-8"。但是这样显示不太好,每个接口都加的话 阅读全文
posted @ 2024-10-11 15:51 信铁寒胜 阅读(538) 评论(0) 推荐(0)