org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘carCuringController’: Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘carCuringServiceImpl’: Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘carCuringDao’: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract com.zczc.logistics_admin.admin.carCuring.model.response.CarCuringInfoResponse com.zczc.logistics_admin.common.dao.CarCuringDaoExt.getCarCuringEntity(com.zczc.logistics_admin.admin.carCuring.model.request.CarCuringInfoRequest)! No property getCarCuringEntity found for type CarCuringEntity!
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘carCuringServiceImpl’: Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘carCuringDao’: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract com.zczc.logistics_admin.admin.carCuring.model.response.CarCuringInfoResponse com.zczc.logistics_admin.common.dao.CarCuringDaoExt.getCarCuringEntity(com.zczc.logistics_admin.admin.carCuring.model.request.CarCuringInfoRequest)! No property getCarCuringEntity found for type CarCuringEntity!
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘carCuringDao’: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract com.zczc.logistics_admin.admin.carCuring.model.response.CarCuringInfoResponse com.zczc.logistics_admin.common.dao.CarCuringDaoExt.getCarCuringEntity(com.zczc.logistics_admin.admin.carCuring.model.request.CarCuringInfoRequest)! No property getCarCuringEntity found for type CarCuringEntity!
Caused by: org.springframework.data.mapping.PropertyReferenceException: No property getCarCuringEntity found for type CarCuringEntity!
以上是报错,类似的很多
这个原因有多处,这只是其中一处,这里展示一处问题
写的时候没有很认真没有注意按照规则或者说模板写清楚,少些了一个单词Dao
以上图是改完之后的,把CarCuringImpl 改成CarCuringDaoImpl 然后启动就可以了
包括接口缺少了Dao 实现类缺少Impl ,Jpa实体类没有继承等
都会出现同样的报错
新入CSDN,写点自己平常遇到的错误,当做是记错本,方便自己以后查阅,如果有遇到类似错误的问题,希望能帮到你,小弟不才,欢迎大神指点一下~非常感谢