a. 默认支持的类型: httpServletRequest, httpservletresponse, httpsession, model 看自己需要, 如果需要用就加上,不需要用就可以不加. b. 简单类型:string, double, float, long, boolean等 要求: 接收的类型的变量名称必须等于页面input框的name属性值 c. pojo类型: springMvc可以直接接收pojo类型数据,…
package java1; public class Point { int x; int y; Point(int x,int y) { this.x = x; this.y = y; } public int getX() { return x; } public void setX(int x) { this.x = x; } } Point a1=new Point(1,2); { a1.setX(10); System.out.println("X="+a1.getX()+…
package com.hanqi.test; public class Point { private int x; private int y; Point(int xx,int yy) { x=xx; y=yy; } public int getX() { return x; } public int getY() { return y; } } Point pt=,); System.out.println("x值是"+pt.getX()+"y的值是"+pt…