- 定时任务程序上生产后,不受定时控制,不断执行(发邮件),开发环境没问题
- 知道原因了
- 服务器上,每次都重启了!
2019-08-12 11:16:52.709 [Thread-6] INFO o.s.scheduling.concurrent.ThreadPoolTaskScheduler - Shutting down ExecutorService 'taskScheduler'
2019-08-12 11:16:52.919 [restartedMain] INFO com.asiainfo.vacmonitor.VacMonitorApplication - Starting VacMonitorApplication on zhifu-test1 with PID 19070 (/app/webapp/vac-monitor/classes started by webapp in /app/webapp/vac-monitor)
2019-08-12 11:16:52.924 [restartedMain] INFO com.asiainfo.vacmonitor.VacMonitorApplication - The following profiles are active: prod
2019-08-12 11:16:53.300 [restartedMain] INFO o.s.scheduling.concurrent.ThreadPoolTaskScheduler - Initializing ExecutorService 'taskScheduler'
2019-08-12 11:16:53.338 [restartedMain] INFO o.s.boot.devtools.autoconfigure.OptionalLiveReloadServer - LiveReload server is running on port 35729
- 真的是devtools的原因!连不上数据库就会不断重启!
- 删掉这个jar就解决!