Mybatis
文章平均质量分 73
Nice____
一名追逐梦想的人
展开
-
XML fragments parsed from previous mappers already contains value for com.mybatis_test.dao.StudentMa
错误提示:Exception in thread "main" java.lang.ExceptionInInitializerError at mybatis_test.main.Test1.main(Test1.java:14)Caused by: org.apache.ibatis.exceptions.PersistenceException: ### Error buildin原创 2017-09-19 22:56:22 · 1346 阅读 · 0 评论 -
通过MyBatis Generator快速配置Mybatis
一、MyBatis Generator 可以生成model,dao,还有mapper文件,比较方便。可以去看一下官方介绍 http://mbg.cndocs.tk/index.html二、通过maven创建一个普通工程三、在pom.xml中添加代码 org.mybatis.generator mybatis-gene转载 2017-09-19 20:01:51 · 358 阅读 · 0 评论 -
Mybatis学习总结(一)
标签在mybatis.xml中配置 这样简化了编程,因为在实际开发中会有很多的javabean,这里只需要指定这些javabean所在的包就行了,那么默认他的别名是javabean 的首字母小写的非限定类名来作为它的别名。如studentmapper.xml中的部分代码 select * from student where id = #{id} 标签原创 2017-09-20 08:44:20 · 390 阅读 · 0 评论