5 changed files with 35 additions and 3 deletions
@ -0,0 +1,21 @@ |
|||
package com.qs.serve.task; |
|||
|
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; |
|||
import org.springframework.scheduling.annotation.Scheduled; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* @author YenHex |
|||
* @since 2023/6/1 |
|||
*/ |
|||
@Slf4j |
|||
//@Component
|
|||
public class TestTasj { |
|||
|
|||
@Scheduled(cron="*/10 * * * * ?") |
|||
public void test11(){ |
|||
System.out.println("test------------------------"); |
|||
} |
|||
|
|||
} |
Loading…
Reference in new issue