beancreationexception
记一次springboot启动失败,org.springframework.beans.factory.BeanCreationException: Error creating bean
我的情况是,这个应用启动的java进程在系统中未结束掉导致的, 原进程仍存在,再次启动项目时报了org.springframework.beans.factory.BeanCreationException: Error creating bean 这个错,通过ps -ef|grep tomcat ......
错误记录:创建mysql+springboot的demo报BeanCreationException: Error creating bean with name 'roleRepository' defined in xx.repository.RoleRepository defined in @EnableJpaRepositories declared on JpaConfigration
java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.lo ......