Commit 63106b0f authored by Quxl's avatar Quxl

x

parent b7dd0a90
......@@ -8,7 +8,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
@EnableScheduling
@EnableTransactionManagement
@SpringBootApplication(scanBasePackages= {"com.com.schneider_distributor", "com.egolm.sso"})
@SpringBootApplication(scanBasePackages= {"com.schneider_distributor", "com.egolm.sso"})
public class SSOApplication {
private static ApplicationContext applicationContext;
......
package com.schneider_distributor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping
public class TestController {
@Autowired
ZMISD009SOCREATIONTask task;
@RequestMapping("/EX009")
public void executeZMISD009SOCREATIONTask() {
task.runTask();
}
}
......@@ -6,7 +6,7 @@ import org.springframework.stereotype.Component;
@Component
public class ZMISD009SOCREATIONTask {
@Scheduled(cron="0 * * * * ?")
@Scheduled(cron="0 0 3 * * ?")
public void execute() {
this.runTask();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment