首页 > 编程语言 > 详细

spring,property not found on type

时间:2017-06-17 21:12:03      阅读:292      评论:0      收藏:0      [点我收藏+]

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!