springboot2.0拦截器配置

springboot中配置拦截的三种方式: 第一种:继承 WebMvcConfigurerAdapter类 在SpringBoot2.0及Spring 5.0 WebMvcConfigurerAdapter已被废弃 第二种:继承WebMvcConfigurationSupport类 这种方式会出现返回的数据为XML格式 (1)响应头 (2)返回值 针对这种情况我们的解决方案: 1.在前端请求头中加
相关文章
相关标签/搜索