Spring Boot项目:
启动项目时,突然启动项目就一直不动,起不来项目,找问题和解决办法找了两个小时,最后突然看到一个博客说把断点都停掉再启动项目,我试了一下,还是不行,我又看了一遍,发现了我在Mapper.java文件中打了一个断点,一放开此断点就运行成功了,此坑,如此之坑
Spring Boot 项目启动时运行到:starting to reset expired jobs 就停止启动(卡住了一样)

日志:
11:29:26.651 logback [restartedMain] INFO o.s.o.j.LocalContainerEntityManagerFactoryBean - Initialized JPA EntityManagerFactory for persistence unit 'default'
11:29:26.845 logback [restartedMain] INFO o.a.s.b.AbstractProcessEngineConfiguration - No process definitions were found for autodeployment
11:29:27.778 logback [restartedMain] INFO o.a.e.c.DefaultActiviti5CompatibilityHandlerFactory - Activiti 5 compatibility handler implementation not found or error during instantiation : org.activiti.compatibility.DefaultActiviti5CompatibilityHandler. Activiti 5 backwards compatibility disabled.
11:29:27.862 logback [restartedMain] INFO o.a.engine.impl.ProcessEngineImpl - ProcessEngine default created
11:29:27.864 logback [restartedMain] INFO o.a.e.i.a.DefaultAsyncJobExecutor - Starting up the default async job executor [org.activiti.spring.SpringAsyncExecutor].
11:29:27.865 logback [Thread-41] INFO o.a.e.i.a.AcquireAsyncJobsDueRunnable - {} starting to acquire async jobs due
11:29:27.865 logback [Thread-42] INFO o.a.e.i.a.AcquireTimerJobsRunnable - {} starting to acquire async jobs due
11:29:27.865 logback [Thread-43] INFO o.a.e.i.a.ResetExpiredJobsRunnable - {} starting to reset expired jobs
解决办法:

把选中的都取消

再启动项目
本文主要讲述了Spring Boot项目启动时遇到的问题及解决办法。一是启动项目一直不动,最终发现是Mapper.java文件中的断点导致,放开断点后运行成功;二是项目启动到“starting to reset expired jobs”停止,解决办法是取消选中项后再启动。
4886

被折叠的 条评论
为什么被折叠?



