如果分隔符用“,”的话会报错,cookie的value中不能包含“,”,将分隔符改为"="后一切正常
tomcat版本 8.5
tomcat版本 8.5
2017-09-05
You are not authorized to view this page. If you have not changed any configuration files, please examine the file conf/tomcat-users.xml in your installation. That file must contain the credentials to let you use this webapp.
2017-09-05
老师的代码感觉有问题,
private static final String url = "jdbc:mysql://localhost:3306/users?useUnicode=true&characterEncoding=UTF-8";
后边只有utf的话会报错
另外一定要记住你MySQL的用户名跟密码,要不连接不上,当然没有密码的除外
private static final String url = "jdbc:mysql://localhost:3306/users?useUnicode=true&characterEncoding=UTF-8";
后边只有utf的话会报错
另外一定要记住你MySQL的用户名跟密码,要不连接不上,当然没有密码的除外
2017-09-04
int d=list.indexOf(request.getParameter("id"));
StringBuilder sb=new StringBuilder(list);
if(d!=-1){
sb.delete(d,d+2);//把旧的id和分割符删除
}
sb.append(request.getParameter("id")+"#");//若存在已删,当新的id看待保证显示最后一次浏览
list=sb.toString();
StringBuilder sb=new StringBuilder(list);
if(d!=-1){
sb.delete(d,d+2);//把旧的id和分割符删除
}
sb.append(request.getParameter("id")+"#");//若存在已删,当新的id看待保证显示最后一次浏览
list=sb.toString();
2017-09-04
http://ts0818.hatenablog.com/entry/2017/06/25/004155
eclipse用了这款插件tomcat的图标就出来了。
eclipse用了这款插件tomcat的图标就出来了。
2017-09-03
天了噜,把安装包从C:\Program Files,改为跟老师一样直接放C盘下,结果ok了,顺便说一次我用的是tomcat9.
2017-09-03