只需要发行一下swagger页面以及静态资源就可以了
@Override
public void configure(WebSecurity web) throws Exception {
web.ignoring().antMatchers("/swagger-ui.html")
.antMatchers( "/swagger-resources/**")
.antMatchers("/v2/api-docs")
.antMatchers("configuration/ui")
.antMatchers("configuration/security")
.antMatchers("/webjars/**");
}