SpringBoot 启动报错 No property found for type !

  • Post author:
  • Post category:其他


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,写点自己平常遇到的错误,当做是记错本,方便自己以后查阅,如果有遇到类似错误的问题,希望能帮到你,小弟不才,欢迎大神指点一下~非常感谢



版权声明:本文为weixin_44019721原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。