org.springframework.data.mapping.PropertyReferenceException: No property name found for type User
来源:互联网 发布:linux dr.com客户端 编辑:程序博客网 时间:2024/06/07 00:31
=========解决办法============
原因是在UserDao中用的方法是:List<User> findByUserId(String phone);
按照jpa的规范这个就是去找User类的userId属性去查询,而我的User的类实体是
所以就找不到了;报错了。
现在就是改成:List<User> findById(String phone);
这样就可以了!
===========SpringData方法命名规则===========
阅读全文
1 0
- org.springframework.data.mapping.PropertyReferenceException: No property name found for type User
- Caused by: org.springframework.data.mapping.PropertyReferenceException: No property name found for t
- org.springframework.data.mapping.model.MappingException: No id property found for object of type
- jpa PropertyReferenceException: No property user found for User异常
- Spring Data JPA 报错 :PropertyReferenceException: No property params found for type xxx!
- jpa中PropertyReferenceException: No property found for type异常原因
- Spring Data JPA: No property name found for type ×××
- Spring Data Jpa 异常:PropertyReferenceException: No property xx for type yy
- No property toPredicate found for type User!报错
- Spring Data JPA: No property foo found for type Bar
- Spring Data JPA - “No Property Found for Type” Exception
- Mongodb 在update时 org.springframework.data.mapping.context.InvalidPersistentPropertyPath: No property
- org.springframework.web.servlet.DispatcherServlet noHandlerFound 警告: No mapping found for HTTP reque
- org.springframework.web.se rvlet.DispatcherServlet.noHandlerFound No mapping found for HTTP request
- org.springframework.web.servlet.PageNotFound]-[WARN] No mapping found for HTTP request with URI [/re
- No setter found for property 'packagesToScan' of class 'org.springframework.orm.hibernate3.annotatio
- No mapping found for dependency [type=java.lang.String, name='struts.objectFactory.spring.autoWire.
- No mapping found for dependency [type=com.opensymphony.xwork2.ObjectFactory, name=\'default\']
- 理解矩阵乘法
- JAVA蓝桥杯 查找整数
- 11月24日云栖精选夜读:如何打造千万级Feed流系统?阿里数据库技术解读
- Python之redis(二)
- 时间序列笔记(六)
- org.springframework.data.mapping.PropertyReferenceException: No property name found for type User
- 对数字的处理,得到位数,逆序输出,顺序输出
- 基于.NET平台常用的框架整理
- @SuppressLint("DrawAllocation")作用和解决方法
- 图像分割
- 微信H5牛牛搭建教程
- 二维数组的问题
- 配合七牛云简易使用kindeditor编辑器的图片上传功能
- 在linux服务器上安装单机版redis