From 719d9a174030a5521e1e1e7f54102614dbbe3e3c Mon Sep 17 00:00:00 2001 From: liuchengqian Date: Thu, 9 Mar 2023 09:25:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/xkrs/common/config/WebSecurityConfig.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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()