简体   繁体   中英

Non-spring MyBatis sample project

I'm getting started with MyBatis, so I'm looking a few good sample projects that use a recent version of standalone (non-spring) MyBatis to get a better feel for the technology.

The examples I keep finding so far either use outdated versions, or use spring.

Can anyone suggest a good sample project?

Some of the useful tutorial/introductions are:

  • A step-by-step DAO-XML based MyBatis Tutorial

http://hmkcode.com/java-mybatis-mysql/

  • A sample project that shows the XML Mapper usage and library setup

http://www.javacodegeeks.com/2012/11/mybatis-tutorial-crud-operations-and-mapping-relationships-part-1.html

  • Koans project that helps for discovering some key points

https://github.com/quux00/mybatis-koans

  • Another sample project that uses annotations

http://java.dzone.com/articles/getting-started-ibatis-mybatis-0

  • After a quick introduction, I definitely suggest to read the official guide that shows the majority of the tricks in using MyBatis

http://mybatis.github.io/mybatis-3/getting-started.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM