diff --git a/src/main/java/com/xkrs/common/config/WebSecurityConfig.java b/src/main/java/com/xkrs/common/config/WebSecurityConfig.java index 1c64f7f..37d2c62 100644 --- a/src/main/java/com/xkrs/common/config/WebSecurityConfig.java +++ b/src/main/java/com/xkrs/common/config/WebSecurityConfig.java @@ -31,15 +31,14 @@ class WebSecurityConfig extends WebSecurityConfigurerAdapter { .authorizeRequests() // 所有OPTIONS请求都放行 .antMatchers(HttpMethod.OPTIONS).permitAll() - .antMatchers("/global/configuration/**").permitAll() .antMatchers("/push/**").permitAll() - .antMatchers("/dispatch/**").permitAll() .antMatchers("/queryFirePoint").permitAll() - .antMatchers( "/insertFirePoint").permitAll() - .antMatchers( "/insertFirePointChannelPrecise").permitAll() + .antMatchers("/insertFirePoint").permitAll() + .antMatchers("/insertFirePointChannelPrecise").permitAll() .antMatchers("/queryFirePointBroadcast").permitAll() .antMatchers("/autoSync").permitAll() - .antMatchers(HttpMethod.GET, "/queryNotice").permitAll()//查询通知 + .antMatchers("/debug").permitAll() + .antMatchers("/queryNotice").permitAll()//查询通知 .antMatchers(HttpMethod.POST, "/api/user/updateSysUser").permitAll() .antMatchers(HttpMethod.POST, "/api/user/add").permitAll() .antMatchers(HttpMethod.POST, "/api/user/check/duplicate").permitAll() @@ -62,7 +61,6 @@ class WebSecurityConfig extends WebSecurityConfigurerAdapter { .antMatchers(HttpMethod.GET, "/api/adm/getCountyList").permitAll()//根据市编号获取区县列表 .antMatchers(HttpMethod.GET, "/api/adm/getStreetList").permitAll()//根据区县编号获取街道列表 .antMatchers(HttpMethod.GET, "/selectTodayFirePoint").permitAll() - .antMatchers(HttpMethod.GET, "/debug").permitAll() // 所有其它请求需要身份认证 .anyRequest().authenticated() .and()