更新配置

This commit is contained in:
liuchengqian 2023-03-09 09:25:24 +08:00
parent e45b19b370
commit 719d9a1740

View File

@ -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("/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()