![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
pj-error-exception
qq_36470908
这个作者很懒,什么都没留下…
展开
-
mybatis 执行mapper.xml参数被重新赋值
问题:条件查询数据列表,先查询数量,在分页查询数据,传入相同的参数。先执行数量查询将传入参数值更改!原因:xml文件if条件写错:record.employeeattence = nullor (record.employeeattence != null and record.employeeattence.organizationid == null)">group b原创 2017-09-26 10:04:30 · 2328 阅读 · 0 评论 -
问题:Can't connect to mysql server on IP(10060)
连接数据库失败我的解决办法:电脑ip地址被占用,修改ip其他解决方式:https://jingyan.baidu.com/article/95c9d20dac9040ec4f75617a.html原创 2018-05-15 14:24:36 · 830 阅读 · 0 评论 -
jfinal main启动服务报错java.lang.IllegalArgumentException: Properties file not found in classpath: ihd.txt
原因:没有编译到classes文件中解决步骤:mavenproject---->clean----->install原创 2018-05-21 16:57:11 · 3137 阅读 · 0 评论 -
Table configuration with catalog null, schema null, and table su_menu did not resolve to any tables
使用mybatis自动生成器是出现: Table configuration with catalog null, schema null, and table su_menu did not resolve to any tables原因选择错了数据库,jdbc.url=jdbc:mysql://localhost:3306/pjAdmin 确定pjAdmin 是你要使用的数据库,并且确定...原创 2018-03-24 14:05:33 · 9976 阅读 · 1 评论 -
Cannot change version of project facet Dynamic Web Module to 2.4
Dynamic Web Module:所建web工程的版本,不同版本的web项目有不同的应用环境解决办法:修改web.xml文件,使用java ee tools自动生成web.xml ,然后将得到的第二行替换老的web.xml第二行 ...原创 2018-03-24 10:05:57 · 137 阅读 · 0 评论 -
javaweb中request请求url中第一个出现的html被替换成.jsp
1.问题:javaweb中request请求url中第一个出现的html被替换成.jsp2.原因:引用了urlrewritefilter-4.0.3.jar对url进行重写 执行了org.tuckey.web.filters.urlrewrite.UrlRewriteFilter类下面的doFilter方法,如图3.解决办法:1.修改urlrewrite.xml重新定义url规则 ...原创 2018-02-28 15:36:33 · 433 阅读 · 0 评论 -
mybatis中mapper.xml定义错误服务器启动不了,并且没有报错
错误:mapper.xml 有错误语法错误跟踪:org.mybatis.spring.SqlSessionFactoryBean类下的方法 buildSqlSessionFactory()中468行:throw new NestedIOException("Failed to parse mapping resource: '" + mapperLocation + "'", e)原创 2018-01-10 16:52:31 · 1934 阅读 · 0 评论 -
Could not load the Tomcat server configuration
一 现象 二 原因:eclipse配置tomcat路径错误,应该选择正确tomcat路径三 操作:重新配置tomcat原创 2018-02-02 11:11:44 · 398 阅读 · 0 评论 -
org.apache.hadoop.hdfs.server.namenode.SafeModeException
异常描述:org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.hdfs.server.namenode.SafeModeException): Cannot create directory /aa/bb. Name node is in safe mode.Resources are low on NN. Please add o原创 2017-10-31 10:44:10 · 3029 阅读 · 0 评论 -
400 bad request
出错原因form表单字段名与后台接收字段名冲突表单:picture字段与服务器接收String类型picture冲突 picture"> 解决办法:更改提交字段名picture为pictureFile原创 2017-10-09 15:51:53 · 783 阅读 · 0 评论 -
服务器启动期间报错:org.apache.ibatis.builder.BuilderException
org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 256; columnNumber: 55; The entity name must immediately follow the '&'原创 2017-09-02 15:08:30 · 1772 阅读 · 0 评论 -
mybatis if test 字符串比较错误处理
问题: and o.deletecls='0'record.isordercls == '1' 写法错误,java是强类型语言,单引号''表示字符,而不是字符串解决办法:一.record.isordercls == "1" 二. record.isordercls == '1'.toString()原创 2017-09-27 14:26:56 · 627 阅读 · 0 评论 -
sql 查询 like '%_1%' 的坑
问题 like '%_1%' 匹配的不是‘_1’的数据 原因:‘_’在sql中是一个通配符,参考http://www.w3school.com.cn/sql/sql_wildcards.asp 解决:like '%\_1%' 添加‘\’进行转义...原创 2018-08-08 10:22:51 · 7992 阅读 · 1 评论