Spring Boot
Tu_Tom
重复昨天的 hello world 也是一种进步
展开
-
springboot 中 @Scheduled 定时任务三种模式
@Scheduled 定时任务三种模式:fixedDelay、cron、fixedRate简述三种模式的用法:1.fixDelay @Scheduled(fixedDelay = 5 * 1000) 间隔5s 执行一次任务。当前任务的执行时间 不影响间隔。即,两个任务之间间隔固定不变。2.cron@Scheduled(cron = "0 0 0 ? * *")根据cron 表达式,来指定任务执行的时间。例句表示的是:每天0点执行一次点击参考大佬写的定时任务cron3.fi原创 2020-10-28 20:07:10 · 1377 阅读 · 0 评论 -
idea module ‘xxx‘ does exits 删除原来子项目重新建立报错
idea module ' xxx ' does exits 删除原来子项目重新建立报错子项目建错了,删掉想重新建立。重新建立的时候报错:我寻思着文件不是删了吗?路径下我也检查了。作为一个野生程序猿,首先想到这玩意肯定是缓存,或者配置文件的事。果然在父项目中有一个 modole 配置文件打开可以看到:由此可见,文件删了,但是配置文件中还存在着原子项目的信息。删掉之后,就可以重新创建了...原创 2020-08-19 10:24:07 · 4446 阅读 · 3 评论 -
Spring Boot 2.0 Tomat 嵌入式定制: WebServerFactoryCustomizer
Spring Boot 2.0 中 Tomat 嵌入式定制 :使用WebServerFactoryCustomizerSpring Boot 2.0.x// @Bean public WebServerFactoryCustomizer webServerFactoryCustomizer(){ return new WebServerFactoryCustomizer<Configur...原创 2019-08-19 10:46:57 · 443 阅读 · 0 评论