摘要: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:s 阅读全文
posted @ 2022-03-28 23:44 ElloeStudy 阅读(100) 评论(0) 推荐(0) 编辑
摘要: IDEA中使用Tomcat解决中文乱码问题 首先在Tomcat的Configurations中配置VM options: -Dfile.encoding=UTF-8 如果操作1不行,就设置IDEA的编码: 在Setting中选择File Encodings: Global Encoding选择UTF 阅读全文
posted @ 2022-03-28 23:42 ElloeStudy 阅读(158) 评论(0) 推荐(0) 编辑
摘要: Maven项目自己写的配置文件无法生效问题 由于Maven 的约定大于配置,自己写的配置文件无法生效的问题 解决方法 在pom.xml中的<build>标签中配置resources来防止我们资源导出失败问题: <build> <resources> <resource> <directory>src 阅读全文
posted @ 2022-03-28 23:41 ElloeStudy 阅读(315) 评论(0) 推荐(0) 编辑
摘要: Jsp请求路劲模板 1.Jsp里面 - <% String path = request.getContextPath(); String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request 阅读全文
posted @ 2022-03-28 23:41 ElloeStudy 阅读(27) 评论(0) 推荐(0) 编辑