
mybatis
文章平均质量分 59
金子塔上的大熊猫
正在学习的未来程序员!
展开
-
mybatis中的log4j使用步骤
1.maven项目自动导包<dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.17</version></dependency>2.配置文件log4j.properties#将等级为DEBUG的日志信息输出到console和file这两个目的地,console和...原创 2021-01-26 23:27:14 · 324 阅读 · 0 评论 -
mybatis中的动态SQL
动态SQL需要掌握一个例子明白为什么用到动态SQLList<Blog> queryBlogByTitleOrAuthor(Map map);原创 2021-01-26 22:23:18 · 128 阅读 · 0 评论 -
解决mybatis实体类中的属性名和SQL中的字段名不一致问题
这个问题在使用mybatis的过程中会经常遇到。 <select id="getStudent2" resultMap="StudentTeacher2"> SELECT s.`id` sid,s.`name` sname,t.`name` tname FROM `student` s,`teacher` t WHERE s.`tid`=t.`id`; </select> <re原创 2021-01-23 16:12:05 · 821 阅读 · 2 评论