spring,property not found on type
Posted 孤独的和弦
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了spring,property not found on type相关的知识,希望对你有一定的参考价值。
刚开始学spring mvc ,遇到这个报错。
jsp页面
user 实体类
public class User { private String name; private int age; private String interest; public User(){ } public User(String name,int age,String interest){ this.name = name; this.age = age; this.interest = interest; } public String getName() { return name; } public void setName(String name) { this.name = name; } public int getAge() { return age; } public void setAge(int age) { this.age = age; } public String getInterest() { return interest; } public void setInterest(String interest) { this.interest = interest; } }
原来变量我写的是首字母大写,结果就总是报找不到变量
全部改为小写后,问题解决
以上是关于spring,property not found on type的主要内容,如果未能解决你的问题,请参考以下文章
DevTools failed to load source map: Could not load content for…System error: net::ERR_FILE_NOT_FOUN
springboot整合mybatis 异常 org.apache.ibatis.binding.BindingException: Invalid bound statement (not foun
spring,property not found on type
Spring JPA使用page进行分页查询时遇到org.hibernate.QueryException: could not resolve property
Spring JPA使用page进行分页查询时遇到org.hibernate.QueryException: could not resolve property