Spring Boot启动报错,麻烦大神们看一下

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]

2个回答

appVersionServiceImpl 这个bean装配错误,你要在bean.xml中为这个类定义bean

appVersionServiceImpl这个bean报错,No default constructor found; nested exception is java.lang.NoSuchMethodException: com.likone.spring.DefaultRepositoryFactoryBean.() DefaultRepositoryFactoryBean没有默认的构造函数。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问