|
@@ -17,7 +17,7 @@ public class ResourceServerConfig extends ResourceServerConfigurerAdapter {
|
|
|
.and()
|
|
|
.authorizeRequests()
|
|
|
.antMatchers("/swagger-ui.html","/webjars/**", "/webjars/**", "/swagger-resources/**",
|
|
|
- "/v2/**","/devicetype/**","/report/**")
|
|
|
+ "/v2/**","/devicetype/**")
|
|
|
.permitAll() //配置不需要身份认证的请求路径
|
|
|
.anyRequest().authenticated() //其他所有访问路径都需要身份认证
|
|
|
.and()
|