
mybatis
欧程
如果不能把代码写的很好,那代码必须要一直保持清洁
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
mybatis的foreach语句使用问题
项目开发过程中,需要对表中多条记录进行删除和更新处理,为此,使用了mybatis中的foreach配置语句,我配置如下: delete from alarm where id in open="(" separator="," close=")">#{item} 使用的参数是字符串数组,在界面操作后,mybatis日志打印如下:2012-09-0原创 2012-09-04 19:31:54 · 7398 阅读 · 0 评论 -
mybatis异常:The content of elements must consist of well-formed character data or markup.
配置mybatis的xml文件后,启动tomcat,发现抛出如下错误:严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerorg.springframework.beans.fact原创 2012-12-10 18:38:18 · 12981 阅读 · 0 评论 -
org.apache.ibatis.type.TypeException: Could not resolve type alias异常
2014-04-25 10:57:23 [ERROR] [org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:205)] -- {message:Context initialization failed}org.springframework.beans.facto原创 2014-04-25 12:45:42 · 90341 阅读 · 5 评论 -
mybatis批量插入数据
insert into CDM_VBIRESULTINFO(LINKID,ITEMID,RESULTVALUE,STATE,CREATETIME) select #{item.linkId,jdbcType=INTEGER}, #{item.itemId,jdbcType=INTEGER},原创 2014-04-26 16:40:32 · 1443 阅读 · 1 评论 -
mybatis获取插入数据主键
前提:数据表定义了出泛起和原创 2014-04-26 16:20:25 · 2077 阅读 · 0 评论