码迷,mamicode.com
首页 > 编程语言 > 详细

spring,property not found on type

时间:2017-06-17 21:35:26      阅读:170      评论:0      收藏:0      [点我收藏+]

标签:找不到   jsp   img   .com   问题解决   问题   oid   nbsp   this   

刚开始学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

标签:找不到   jsp   img   .com   问题解决   问题   oid   nbsp   this   

原文地址:http://www.cnblogs.com/mtour/p/7041255.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!