3、SpringMVC实战:SpringMVC结合Ajax

SpringMVC结合Ajax

代码模拟:
说明全在注释中,方便直接,一定要看!!!!

package com.pojo;

public class Student {
   
   
     

    private int age;

    private String name;

    private String sex;

    public Student(int age, String name, String sex) {
   
   
     
        this.age = age;
        this.name = name;
        this.sex = sex;
    }

    public Student() {
   
   
     
    }

    public int getAge() {
   
   
     
        return age;
    }

    public void setAge(int age) {
   
   
     
        this.age = age;
    }

    public String getName() {
   
   
     
        return name;
    }

    public void setName(String name) {
   
   
     
        this.name = name;
    }

    public String getSex() {
   
   
     
        return sex;
    }

    public void setSex(String sex) {
   
   
     
        this.sex = sex;
    }

    @Override
    

版权声明:本文不是「本站」原创文章,版权归原作者所有 | 原文地址: