Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'schedulerFactory' defined in class path resource [applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.scheduling.quartz.SchedulerFactoryBean]: No default constructor found; nested exception is java.lang.NoClassDefFoundError: org/springframework/transaction/TransactionException
原因:maven依赖中用来支持事务的spring-tx没导
本文详细解析了在Spring框架中,由于spring-tx依赖缺失导致的事务管理配置异常问题。阐述了异常的具体表现,即在启动应用时出现的BeanCreationException错误,并深入探讨了其根本原因——缺少必要的spring-tx依赖。同时,提供了检查Maven依赖和正确引入spring-tx的解决方案。
913

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



