![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
故人何谓
这个作者很懒,什么都没留下…
展开
-
ResponseBodyAdvice统一返回格式、及加密,过滤指定方法和接口
@ControllerAdvice(basePackages = "com.test.action")@Slf4jpublic class ProcessResponseInterceptor implements ResponseBodyAdvice<String> { @Override public String beforeBodyWrite(String ...原创 2019-05-14 14:19:08 · 3678 阅读 · 0 评论 -
Ajax自定义header跨域无法获取问题(No 'Access-Control-Allow-Origin' header)
和前端调试发现一个问题,收不到前端传上来的header,然后前端报错No 'Access-Control-Allow-Origin' header is present on the requested resource.后来增加如下配置:解决@Configurationpublic class WebConfiguration extends WebMvcConfigurerA...原创 2019-08-14 17:13:40 · 791 阅读 · 0 评论