![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SpringBoot
「已注销」
贴地飞行猿
展开
-
新建Spring boot项目 启动报错 Failed to auto-configure a DataSource
Spring boot 启动报错 Failed to auto-configure a DataSource 第一次搭建spring boot,选择了web,mysql,mybatis,thymeleaf功能。启动时报错:***************************APPLICATION FAILED TO START**************************...原创 2018-05-02 01:37:58 · 621 阅读 · 0 评论 -
springboot添加logback生成日志文件
application.yml配置文件中添加logging,值为logback配置文件地址,logging: config: src/main/resources/logback-spring.xmllogback-spring.xml配置文件,实时生成文件:<?xml version="1.0" encoding="UTF-8" ?><confi原创 2018-05-02 02:36:19 · 2968 阅读 · 2 评论 -
Crom表达式规则 @Scheduled 定时任务使用
CronTrigger CronTriggers往往比SimpleTrigger更有用,如果您需要基于日历的概念,而非SimpleTrigger完全指定的时间间隔,复发的发射工作的时间表。 CronTrigger,你可以指定触发的时间表如“每星期五中午”,或“每个工作日9:30时”,甚至“每5分钟一班9:00和10:00逢星期一上午,星期三星期五“。 即便如此,SimpleTrigger一样,C...转载 2018-06-22 09:48:09 · 1724 阅读 · 0 评论 -
spring boot @Scheduled 定时任务
@Scheduled中参数说明@Scheduled(fixedRate=2000):上一次开始执行时间点后2秒再次执行;@Scheduled(fixedDelay=2000):上一次执行完毕时间点后2秒再次执行;@Scheduled(initialDelay=1000, fixedDelay=2000):第一次延迟1秒执行,然后在上一次执行完毕时间点后2秒再次执行;@Schedul...原创 2018-06-22 13:12:33 · 280 阅读 · 0 评论