取消定时同步,手动同步加入白名单
This commit is contained in:
@@ -44,6 +44,8 @@ public class WebMvcConfig implements WebMvcConfigurer {
|
|||||||
addInterceptor.excludePathPatterns("/slrs/sar-stand-project-team/save");
|
addInterceptor.excludePathPatterns("/slrs/sar-stand-project-team/save");
|
||||||
//tc模块结构单元数据
|
//tc模块结构单元数据
|
||||||
addInterceptor.excludePathPatterns("/api/sarModelTree/save");
|
addInterceptor.excludePathPatterns("/api/sarModelTree/save");
|
||||||
|
addInterceptor.excludePathPatterns("/api/DataSync/importUserData");
|
||||||
|
addInterceptor.excludePathPatterns("/api/DataSync/importOrgData");
|
||||||
|
|
||||||
// 添加自定义拦截器,并拦截对应 url
|
// 添加自定义拦截器,并拦截对应 url
|
||||||
addInterceptor.addPathPatterns("/**");
|
addInterceptor.addPathPatterns("/**");
|
||||||
|
|||||||
@@ -23,8 +23,9 @@ public class ScheduledSync {
|
|||||||
private IDataSyncService iDataSyncService;
|
private IDataSyncService iDataSyncService;
|
||||||
|
|
||||||
|
|
||||||
@Scheduled(cron = "0 */40 * * * ?") //40分钟执行同步一次
|
// @Scheduled(cron = "0 */40 * * * ?") //40分钟执行同步一次
|
||||||
// @Scheduled(cron="*/5 * * * * ?")
|
// @Scheduled(cron="*/5 * * * * ?")
|
||||||
|
|
||||||
@Async
|
@Async
|
||||||
public void syncSchedulingTasks() throws Exception {
|
public void syncSchedulingTasks() throws Exception {
|
||||||
iDataSyncService.orgDataSync(); //时间短
|
iDataSyncService.orgDataSync(); //时间短
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ import java.util.*;
|
|||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@Api(description = "|SarStandPutTime|")
|
@Api(description = "|SarStandPutTime|")
|
||||||
@RequestMapping("/DataSync")
|
@RequestMapping("/${restPath}/DataSync")
|
||||||
public class DataSyncController {
|
public class DataSyncController {
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user