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,寫點自己平常遇到的錯誤,當做是記錯本,方便自己以後查閱,如果有遇到類似錯誤的問題,希望能幫到你,小弟不才,歡迎大神指點一下~非常感謝