SpringBoot 启动报错 No property found for type !

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

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值