org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'appVersionServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.likone.ofc.appVersion.repository.AppVersionRepository com.likone.ofc.appVersion.service.impl.AppVersionServiceImpl.appVersionRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'appVersionRepository': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.likone.spring.DefaultRepositoryFactoryBean]: No default constructor found; nested exception is java.lang.NoSuchMethodException: com.likone.spring.DefaultRepositoryFactoryBean.()
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
appVersionServiceImpl 这个bean装配错误,你要在bean.xml中为这个类定义bean
appVersionServiceImpl这个bean报错,No default constructor found; nested exception is java.lang.NoSuchMethodException: com.likone.spring.DefaultRepositoryFactoryBean.() DefaultRepositoryFactoryBean没有默认的构造函数。