From 4a628519de090808d99f8dccdcdf5d97cb7c8745 Mon Sep 17 00:00:00 2001 From: liuchengqian Date: Wed, 8 Mar 2023 16:25:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8E=A5=E5=8F=A3=EF=BC=9A?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=9B=B4=E6=96=B0=E8=AE=A2=E9=98=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/xkrs/common/config/WebSecurityConfig.java | 3 +-- .../com/xkrs/controller/DispatchFirePointController.java | 9 +++++---- 2 files changed, 6 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 9f7894e..b96691b 100644 --- a/src/main/java/com/xkrs/common/config/WebSecurityConfig.java +++ b/src/main/java/com/xkrs/common/config/WebSecurityConfig.java @@ -29,14 +29,13 @@ class WebSecurityConfig extends WebSecurityConfigurerAdapter { http.csrf().disable() // 对请求进行认证 .authorizeRequests() - // 所有 / 的所有请求 都放行 - //.antMatchers("/").permitAll() // 所有OPTIONS请求都放行 .antMatchers(HttpMethod.OPTIONS).permitAll() .antMatchers("/global/configuration/**").permitAll() .antMatchers("/push/**").permitAll() .antMatchers("/dispatch/**").permitAll() .antMatchers("/queryFirePoint").permitAll() + .antMatchers(HttpMethod.GET, "/autoSync").permitAll() .antMatchers(HttpMethod.POST, "/insertFirePoint").permitAll() .antMatchers(HttpMethod.POST, "/insertFirePointChannelPrecise").permitAll() .antMatchers(HttpMethod.GET, "/queryFirePointBroadcast").permitAll() diff --git a/src/main/java/com/xkrs/controller/DispatchFirePointController.java b/src/main/java/com/xkrs/controller/DispatchFirePointController.java index 3dc7d97..ec77136 100644 --- a/src/main/java/com/xkrs/controller/DispatchFirePointController.java +++ b/src/main/java/com/xkrs/controller/DispatchFirePointController.java @@ -1,10 +1,10 @@ package com.xkrs.controller; -import com.xkrs.service.impl.FirePointServiceImpl; import com.xkrs.dao.SysUserDao; import com.xkrs.helper.FirePointSubscribeManager; import com.xkrs.model.qo.AllFirePointQo; import com.xkrs.service.DispatchFirePointService; +import com.xkrs.service.impl.FirePointServiceImpl; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.web.bind.annotation.GetMapping; @@ -49,11 +49,12 @@ public class DispatchFirePointController { // sysUserEntity.setVipTimeRangeJson(serialize); // sysUserDao.save(sysUserEntity); // } + return "OKkkkkkkk"; + } + @GetMapping("/autoSync") + public String autoSync() { return firePointSubscribeManager.autoSync(); - - -// return "OKkkkkkkk"; } /**