瀏覽代碼

fix: 将预览数据清理的定时任务方法从私有改为public,解决Need to invoke method ‘xxx_method’ found on proxy for target class ‘xxx_class’ but cannot be delegated to target bean. Switch its visibility to package or protected. 报错问题

hong.yang 1 年之前
父節點
當前提交
fefb62121b

+ 1 - 1
DataRoom/dataroom-core/src/main/java/com/gccloud/dataroom/core/module/basic/task/PreviewClearTask.java

@@ -24,7 +24,7 @@ public class PreviewClearTask {
 
 
     @Scheduled(cron = "0 0 1 * * ?")
-    private void clear() {
+    public void clear() {
         log.info("开始清理预览数据");
         previewService.clear();
     }