报错信息:

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘assetsServiceImpl’: Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘assetsRepository’: Invocation of init method failed; nested exception is org.springframework.data.mapping.PropertyReferenceException: No property testid found for type AssetsPO!

分析:

我在改了一个 @Entity 类的变量名称后,出现了这个错误。看了报错信息,提示在AssetsPO中没有testid 属性,用到这个属性的还有Repository类,于是进去一看发现,

这才明白,原来是这里找不到testid

原因:

这种错误是在JpaRepository 的类中自定义函数,没有对应的字段,例如countByIdAndUserId,但是没有id和userId,更改对应的属性即可

org.springframework.data.mapping.PropertyReferenceException: No property * found for *相关推荐

  1. org.springframework.data.mapping.PropertyReferenceException: No property xxxx found for type Xxxx

    2019独角兽企业重金招聘Python工程师标准>>> 解决方法 解决方法详见:spring data jpa @Entity property not found exceptio ...

  2. org.springframework.data.mapping.PropertyReferenceException: No property item found for type BItem!

    Caused by: org.springframework.data.mapping.PropertyReferenceException: No property item found for t ...

  3. Java接收solr动态域_Spring Data Solr创建动态域报错:org.springframework.data.solr.UncategorizedSolrException...

    今天在项目中使用Spring Data Solr导入动态域数据报错, 控制台打印错误信息如下 Exception in thread "main" org.springframew ...

  4. org.springframework.data.redis.serializer.SerializationException: Cannot serialize;

    错误: . ____ _ __ _ _/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \\ ...

  5. data mapping

     数据映射(Data Mapping):给定两个数据模型,在模型之间建立起数据元素的对应关系,将这一过程称为数据映射.  ETL包括三个阶段:数据抽取(extract),数据转换(transform) ...

  6. MongoDB填坑Can't find a codec for class org.springframework.data.mongodb.core.query.GeoCommand

    之前我写过一篇文章:MongoDB LBS经纬度查询操作,我再后续的实战中发现了一些坑,再次帮大家填一下! Geo字段顺序问题 注意一下location中lng(经度),lat(纬度),按照这个顺序查 ...

  7. org.springframework.data.mongodb.UncategorizedMongoDbException

    在使用mongodb数据库执行带条件查询操作时遇到以下问题: org.springframework.data.mongodb.UncategorizedMongoDbException: Query ...

  8. org.springframework.data.redis.RedisSystemException: Error in execution; nes遇到springboot连接Redis报错

    org.springframework.data.redis.RedisSystemException: Error in execution; nested exception is io.lett ...

  9. springboot 异常 org.springframework.expression.spel.SpelEvaluationException: EL1008E: Property or fiel

    org.springframework.expression.spel.SpelEvaluationException: EL1008E: Property or field 'timestamp' ...

最新文章

  1. pynput使用简单说明
  2. MVC 源码系列之路由(一)
  3. 找工作,我该如何是好?
  4. HDFS文件系统基本文件命令、编程读写HDFS
  5. 【Linux】32. shell脚本 定时删除 过时 的某类文件
  6. SAP Fiori里的List是如何做到懒加载Lazy load的
  7. 科学计算机简单编程_是“计算机科学”还是“编程”?
  8. java数据库程序实例_Java连接各种数据库的实例大全
  9. tomcat7 1000并发量配置 tomcat7配置优化
  10. R语言-数据清洗-缺失值处理
  11. Leetcode每日一题:122.best-time-to-buy-and-sell-stock-ii(买股票的最佳时机Ⅱ)
  12. rootkit 后门检查工具 rkHunter安装使用
  13. 一个老菜鸟的学习 ASP.NET MVC 3.0与EF 4.1的痛苦经历与项目源代码分享。
  14. openCV实践项目:银行卡卡号识别
  15. b站服务器崩溃大会员自动续费,[财经]B站因服务器故障赠送用户1天大会员!回应补偿会自动续费会退款 - 南方财富网...
  16. VUE学习笔记------奕长苏
  17. 天平游码读数例题_在天平读数时游码要读游码左端对应的刻度______
  18. PIXHAWK上安装PX4Flow光流传感器及调试过程
  19. Oracle中如何查询CLOB字段类型的内容
  20. 阿里云搭建MQTT服务器并进行本地和服务器端联通测试

热门文章

  1. 愚昧无知者,小人,君子
  2. 网络安全技术第七章——防火墙技术概述及应用(包过滤防火墙 、代理防火墙、状态检测防火墙、分布式防火墙)
  3. pcm 32bit float 双声道转换16bit单声道
  4. selenium-Tapd重新打开次数统计
  5. Android实现时间选择器
  6. 4年功能测试月薪9.5K,4个月时间进阶自动化,跳槽涨薪4k后我的路还很长...
  7. Numpy中关于np.rollaxis和np.swapaxes的理解
  8. android Bluetooth常用AT 命令手册
  9. SSO是什么?CAS是什么?
  10. 计算机二级Excel考点精讲(四)