Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s). 是之前打开tomcat没有关
2017-04-11
为啥不是 username.equals("admin") 而是 "admin".equals(username)看着有些别扭
因为如果是 username.equals("admin") 的话 当username是空时会产生空指向异常
而"admin".equals(username) 的话 就不会有这种问题
因为如果是 username.equals("admin") 的话 当username是空时会产生空指向异常
而"admin".equals(username) 的话 就不会有这种问题
2017-04-10
Cookie cookie = new Cookie("ListViewCookie",list); 回答上面的同学ListViewCookie的由来
2017-04-10
我也补充一点儿干货吧,一部分同学的Eclipse中不能直接编写web,所以需要在Eclipse中安装JavaEE扩展插件:打开eclipse—Help—Install New Software—Add(找到web,java ee)选中,—Next。
2017-04-10