对象序列化存入文件问题
String id = customer.getId();
String relativePath = "/WEB-INF/classes/customerData/" + id
+ ".ser";
System.out.println("2");
String realPath = getServletContext().getRealPath(relativePath);
// 将对象序列化到文件中
FileOutputStream fos = new FileOutputStream(realPath);
ObjectOutputStream oos = new ObjectOutputStream(fos);
oos.writeObject(customer);