1.ecxcel导入导出的实现
1.创建Book类,并编写set方法和get方法
package com.bean; public class Book { private int id; private String name; private String type; // public int a; public String getType() { System.out.println("调用了类型方法"); return type; } public void setType(String type) { this.type = type; } // public void test (String name,int a){ // System.out.println("调用了多参数的方法"); // } public String getName() { System.out.println("调用了名称方法"); return name; } public void setName(String name) { this.name = name; } public int getId() { System.out.println("调用了序号方法"); return id; } public void setId(int id) { this.id = id; } }