
Mybatis
smile2coder
记录学习路上的所见所识
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Mybatis-动态SQL
动态SQL是mybatis的强大特性之一,主要包括以下几点 if choose(when,otherwise) trim(where,set) foreach bind 前置条件 项目是springboot搭建 开启mybatis的驼峰等配置 mybatis: mapper-locations: classpath:mapper/*Mapper.xml type-aliases-...原创 2019-01-12 12:20:51 · 150 阅读 · 0 评论 -
org.apache.ibatis.binding.BindingException
记录Mybatis的xml中无法直接用对象参数的属性 今天使用mybatis的过程中,在dao有一个查询方法 List<User> selectByNickname(@Param("user") User user); xml中的配置文件 <select id="selectByNickname" resultMa原创 2019-01-12 14:00:56 · 189 阅读 · 0 评论 -
Mybatis的注解开发
Mybatis的注解开发原创 2019-01-12 14:35:13 · 206 阅读 · 0 评论