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"; } /**