摘要: 1 String username = request.getParameter("username"); 2 System.out.println("username="+username); 3 4 //反向编码, 将乱码再编码回二进制 5 byte[] bytes = username.getBytes("i... 阅读全文
posted @ 2018-01-26 23:32 狂妄的老头 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 配置虚拟路径映射的三种方式: 1。在server.xml中的<Host>标签中配置<Context>标签,其中的path属性指定虚拟路径(浏览器访问的路径),docBase指向真实的web应用目录。如: <Host name="localhost" appBase="webapps(主机地址(不能直 阅读全文
posted @ 2018-01-26 14:11 狂妄的老头 阅读(3935) 评论(0) 推荐(0) 编辑