|
|
@ -115,6 +115,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
|
|
|
|
// 静态资源,可匿名访问
|
|
|
|
// 静态资源,可匿名访问
|
|
|
|
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
|
|
|
|
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
|
|
|
|
.antMatchers( "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**", "/jn/**").permitAll()
|
|
|
|
.antMatchers( "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**", "/jn/**").permitAll()
|
|
|
|
|
|
|
|
.antMatchers("/netEwm/net/findById/**").anonymous()
|
|
|
|
// 除上面外的所有请求全部需要鉴权认证
|
|
|
|
// 除上面外的所有请求全部需要鉴权认证
|
|
|
|
.anyRequest().authenticated()
|
|
|
|
.anyRequest().authenticated()
|
|
|
|
.and()
|
|
|
|
.and()
|
|
|
|