
java Expection
进击的Paul
初级菜鸟
展开
-
无法在web.xml或使用此应用程序部署的jar文件中解析绝对uri
According to TLD or attribute directive in tag file, attribute [items] does not accept any expressions解决办法:将<%@ taglib prefix=“c” uri=“http://java.sun.com/jstl/core” %>更换为<%@ taglib prefix...原创 2020-04-12 23:19:31 · 7140 阅读 · 4 评论 -
Method Not Allowed
HTTP Status 405 ? Method Not Allowed Type Status ReportMessage HTTP method POST is not supported by this URLDescription The method received in the request-line is known by the origin server but...原创 2018-08-12 19:52:50 · 2268 阅读 · 0 评论 -
Attribute value [request.getAttribute("XXXX")] is quoted with ["] which must be escaped...
Attribute value [request.getAttribute(“XXXX”)] is quoted with ["] which must be escaped when used within the value。错误原因:""的问题解决方案如下:原错误代码:<jsp:param name=“paramName” value="<%=request.getAtt...原创 2019-04-11 16:18:37 · 664 阅读 · 0 评论 -
idea中出现Error:(1, 1) java: 非法字符: '\ufeff'
IntelliJ IDEA :Error:(1, 1) java: 非法字符: '\ufeff'解决方案:可以将文件的编码格式由utf-16变为utf-8就可以了。原创 2018-10-31 09:02:23 · 6596 阅读 · 0 评论 -
Mybatis中返回结果部分字段为null
现象:Mybatis中返回结果部分字段为null,检查SQL语句是正确的。原因:数据库的字段名与pojo对象的属性名不匹配。解决办法:使用别名的方式。表结构:pojo属性:使用别名即可解决!!! <select id="queryById" resultType="Paper" parameterType="long"> SELECT name AS ...原创 2019-04-15 15:44:49 · 1902 阅读 · 0 评论 -
Mybatis中,具有返回值的方法,执行报错。attempted to return null from a method with a primitive return type (boolean)
报错:Mapper method ‘xxxx.addEmployee attempted to return null from a method with a primitive return type (boolean).’出错原因及解决方法:在Mybatis中,返回值是包装类,因此在对应的接口中,需要将返回值修改为包装类即可。...原创 2019-04-29 14:05:02 · 2584 阅读 · 0 评论