


解决方法
在spring_security模块下的TokenWebSecurityConfig这个类方法下的configur方法更改一下,接口测试需要改成这个web.ignoring().antMatchers("/*/**");
/**
* 配置哪些请求不拦截
* @param web
* @throws Exception
*/
@Override
public void configure(WebSecurity web) throws Exception {
//web.ignoring().antMatchers("/api/**",
// "/swagger-resources/**", "/webjars/**", "/v2/**", "/swagger-ui.html/**"
// );
web.ignoring().antMatchers("/*/**");
}
943

被折叠的 条评论
为什么被折叠?



