- 博客(3)
- 收藏
- 关注
原创 Mybatis学习总结(一)
标签在mybatis.xml中配置 这样简化了编程,因为在实际开发中会有很多的javabean,这里只需要指定这些javabean所在的包就行了,那么默认他的别名是javabean 的首字母小写的非限定类名来作为它的别名。如studentmapper.xml中的部分代码 select * from student where id = #{id} 标签
2017-09-20 08:44:20 398
原创 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 1361
转载 通过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 369
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人