
java
mjywm
码代码的世界
展开
-
mybatis操作查询数据正常,但增删改数据库无变化的问题处理
因为数据库中表-设计表-选项-引擎选择的是innodb支持事务,所以代码insert,delete,update后要提交事务mapper.update(product);sqlSession.commit();如果引擎默认选择的是MyISAM是不支持事务的,所以不提交事务,数据库也会改变...原创 2020-07-08 20:38:47 · 904 阅读 · 0 评论 -
com.alibaba.fastjson.JSONException: exepct[, but error, pos 1, json : redis调用失败
com.alibaba.fastjson.JSONException: exepct '[', but error, pos 1, json : redis调用失败 我的原因是redis服务没有启动cmd 运行redis和它的配置文件原创 2020-06-26 23:38:25 · 2218 阅读 · 0 评论 -
You have an error in your SQL syntax check the manual that corresponds to your MySQL server versio
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near null,10at line 5 at sun.reflect.NativeConstruct...原创 2020-05-22 22:31:19 · 572 阅读 · 0 评论 -
java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for wf.sour
java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for wf.source.crm.mapper.找不到这个映射器 可能是编译出问题, idea中,delete target文件夹 然后 选中项目 右键 rebuild module重新编译一下...原创 2020-05-21 14:38:40 · 301 阅读 · 0 评论 -
Cause: org.apache.ibatis.executor.ExecutorException:
A query was run and no Result Maps were found for the Mapped Statement 'cn.itsource.hello.mapper.ProductMapper.selectForList'. It's likely that neither a Result Type nor a Result Map was specified.原因是ProductMapper.xml中的selectForList方法里没有写resultMap...原创 2020-05-13 22:47:19 · 522 阅读 · 0 评论 -
Direct self-reference leading to cycle
HTTP Status 500 - Could not write content: Direct self-reference leading to cycle (through reference chain: java.util.ArrayList[6]->cn.itsource.domain.Producttype["parent"]); nested exception is co...原创 2020-05-03 23:29:09 · 12617 阅读 · 5 评论