摘要:        
一. 基于注解@Scheduled默认为单线程,开启多个任务时,任务的执行时机会受上一个任务执行时间的影响。 1、创建定时器 使用SpringBoot基于注解来创建定时任务非常简单,只需几行代码便可完成。 代码如下: Cron表达式参数分别表示: 秒(0~59) 例如0/5表示每5秒 分(0~59)    阅读全文
posted @ 2019-11-13 10:47
程序生(Codey)
阅读(462)
评论(0)
推荐(0)
        
            
        
        
摘要:        
一. 自动优化导包(自动删除、导入包) 下面是Auto Import设置步骤详解。 Settings→Editor→General→Auto Import 然后勾选Add unambiguous imports on the fly以及Optimize imports on the fly Add     阅读全文
posted @ 2019-11-13 10:37
程序生(Codey)
阅读(191)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号