问题1.
print方法就是调用write方法实现的,只不过将object转换成String了
public void print(Object obj) {
write(String.valueOf(obj));
}
1)由于web.xml配置不正确,一般是处
问题2. java.sql.SQLException: Before start of result set
原因: rs.next();
String phone=rs.getString(3);
String address=rs.getString(4);
开始时,没写rs.next() 导致索引停留在第0行,没有数据!!
问题3.The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.