摘要:
import org.springframework.jms.annotation.JmsListener;import org.springframework.stereotype.Component;import javax.jms.TextMessage;@Componentpublic cl 阅读全文
摘要:
1、启动类添加注解 @EnableScheduling 2、方法 @Scheduled(fixedDelay = 3000L)public void sendScheduled(){ executeTask();} 阅读全文
摘要:
1、建立maven工程,导入dependency <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.5.RELEA 阅读全文