![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mybatis
xiha_zhu
这个作者很懒,什么都没留下…
展开
-
mybatis-plus使用及代码生成
代码生成 pom文件: <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.4.3</version> </dependency> <dependency> <groupId>mys原创 2021-10-24 11:32:25 · 180 阅读 · 0 评论 -
mybatis关联查询
相关bug java.lang.IllegalArgumentException: At least one base package must be specified 启动类添加注解@MapperScan("...") org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.zhu.mapper.SysUserMapper.selectByPrimaryKey SysUserM...原创 2021-02-23 18:21:48 · 144 阅读 · 0 评论 -
Mybatis常用标签使用
select <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="UserBean"> select * from User where id = #{id} <where> <if test="name != null && name != ''"> and name = #{name} .原创 2021-04-29 12:57:58 · 224 阅读 · 0 评论