删除垃圾代码

This commit is contained in:
liuchengqian 2023-03-09 08:45:15 +08:00
parent ccf26084cb
commit e45b19b370
3 changed files with 13 additions and 6 deletions

View File

@ -38,4 +38,11 @@ public class StaticScheduleTask {
}
}
//每4秒钟更新一次订阅
@Scheduled(cron = "0/4 * * * * ?")
private void syncSubscribe6() {
firePointSubscribeManager.autoSync();
}
}

View File

@ -35,11 +35,12 @@ class WebSecurityConfig extends WebSecurityConfigurerAdapter {
.antMatchers("/push/**").permitAll()
.antMatchers("/dispatch/**").permitAll()
.antMatchers("/queryFirePoint").permitAll()
.antMatchers(HttpMethod.POST, "/insertFirePoint").permitAll()
.antMatchers(HttpMethod.POST, "/insertFirePointChannelPrecise").permitAll()
.antMatchers(HttpMethod.GET, "/queryFirePointBroadcast").permitAll()
.antMatchers(HttpMethod.POST, "/api/user/updateSysUser").permitAll()
.antMatchers( "/insertFirePoint").permitAll()
.antMatchers( "/insertFirePointChannelPrecise").permitAll()
.antMatchers("/queryFirePointBroadcast").permitAll()
.antMatchers("/autoSync").permitAll()
.antMatchers(HttpMethod.GET, "/queryNotice").permitAll()//查询通知
.antMatchers(HttpMethod.POST, "/api/user/updateSysUser").permitAll()
.antMatchers(HttpMethod.POST, "/api/user/add").permitAll()
.antMatchers(HttpMethod.POST, "/api/user/check/duplicate").permitAll()
.antMatchers(HttpMethod.POST, "/api/login").permitAll()
@ -62,7 +63,6 @@ class WebSecurityConfig extends WebSecurityConfigurerAdapter {
.antMatchers(HttpMethod.GET, "/api/adm/getStreetList").permitAll()//根据区县编号获取街道列表
.antMatchers(HttpMethod.GET, "/selectTodayFirePoint").permitAll()
.antMatchers(HttpMethod.GET, "/debug").permitAll()
.antMatchers(HttpMethod.GET, "/autoSync").permitAll()
// 所有其它请求需要身份认证
.anyRequest().authenticated()
.and()

View File

@ -23,7 +23,7 @@ spring.datasource.hikari.validation-timeout = 3000
## Spring Data JPA 配置
spring.jpa.database = POSTGRESQL
spring.jpa.database-platform = org.hibernate.dialect.PostgreSQLDialect
spring.jpa.show-sql = false
spring.jpa.show-sql = true
# 指定 ddl mode (none, validate, create, create-drop, update)
spring.jpa.hibernate.ddl-auto = update
# 命名策略