mybatis
muyilee
这个作者很懒,什么都没留下…
展开
-
ibatiS启动的异常 The content of elements must consist of well-formed character data or markup
配置的动态SQL语句里面带""等符号的用 <![CDATA[ ]]> 括起来转载 2013-07-25 14:36:06 · 1733 阅读 · 0 评论 -
使用mybatis执行sql的时候为什么会出现Parameter index out of range (1 > number of parameters, which is 0)?
写like语句的时候 一般都会写成 like '% %' 在mybatis里面写就是应该是 like '%${name} %' 而不是 '%#{name} %' ${name} 是不带单引号的,而#{name} 是带单引号的原创 2013-07-25 15:39:09 · 34830 阅读 · 9 评论 -
mybatis的配置文件的读取
public SeriesDao() throws Exception { String resource = "sqlmap.xml"; Reader reader; reader = Resources.getResourceAsReader(resource); SqlMapClient sqlMap = SqlMapClientBuilder.buildSqlMapClient(r原创 2013-08-15 14:47:10 · 2634 阅读 · 1 评论