会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
德德豸
博客园
首页
新随笔
联系
管理
订阅
随笔分类 -
Mybatis
mybatis遇到nested exception is org.apache.ibatis.binding.BindingException: Parameter 'start' not found. Available parameters are [param1, balanceApply]
摘要:当mapper中用到@param注解时,mapper.xml中需要这样 #{paramName.start} paramName是注解的value www.yanand.me
阅读全文
posted @
2016-05-30 15:05
德德豸
阅读(534)
评论(0)
推荐(0)
mysql遇到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“ year_month”错误
摘要:原因是表中字段不能是mysql的关键字
阅读全文
posted @
2016-05-25 13:27
德德豸
阅读(444)
评论(0)
推荐(0)
mybatis模糊查询不同写法
摘要:工作中用到,写三种用法吧,第四种为大小写匹配查询 1. sql中字符串拼接 SELECT * FROM tableName WHERE name LIKE CONCAT(CONCAT('%', #{text}), '%'); 2. 使用 ${...} 代替 #{...} SELECT * FROM
阅读全文
posted @
2016-05-25 11:55
德德豸
阅读(222)
评论(0)
推荐(0)
公告