spring测试定时器时报错No default constructor found

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没导

猜你喜欢

转载自blog.csdn.net/s2018_0423/article/details/84234377
今日推荐