1、总应用主类上上添加@EnableScueduling注解,启动启用定时任务的配置,代码如下......@SpringBootApplication@EnableSchedulingpublic class DemoApplication { public static void main(String[] args) { ……继续阅读 » 开心洋葱 8年前 (2018-01-08) 2713浏览 0评论2098个赞
1、idea新创建Spring Boot项目,选择Web类型2、增加HelloController类,代码如下package com.example.demo;import org.junit.Before;import org.junit.Test;import org.junit.runner.RunWith;import o……继续阅读 » 开心洋葱 8年前 (2018-01-08) 2437浏览 0评论2378个赞