Saturday, September 9, 2017

MyBatis-Guice 3.10 Released!

We are proud to announce the release of MyBatis-Guice 3.10.

This release is mostly a bug fix. The main change is that Guice Multibindings is not required anymore.
See the details at

It is available in Github and Maven Central.

Big thanks for your support and enjoy!

Tuesday, August 22, 2017

MyBatis-Ignite 1.0.6 released!

Dear Community,

We have released mybatis-ignite 1.0.6 which updates Apache Ignite to 2.1.0 and MyBatis 3.4.5.

Project is available on GitHub and Maven Central.

Thanks and enjoy!

Sunday, August 20, 2017

Mybatis-Spring-Boot-Starter 1.2.2 & 1.3.1 released!

Dear MyBatis Community,

I am pleased to announce 1.2.2 and 1.3.1 releases of mybatis-spring-boot-starter project.

Highlights from this release:

  • Upgrade to Mybatis 3.4.5 (#174)
  • Upgrade to Spring Boot 1.5.6.RELEASE on 1.3.1 (#181)
  • Upgrade to Spring Boot 1.4.7.RELEASE on 1.2.2 (#172)
  • Supports input completion for  defaultScriptingLanguage and defaultEnumTypeHandler on 1.3.1 (#159 #175)

For full changes, please refer to release note.

Let's Enjoy!

The MyBatis Team

MyBatis 3.4.5 released!

Dear Community,

We are pleased to announce the release of MyBatis 3.4.5.
Here is the list of user visible changes.

  • Make default enum type handler customizable. #971
  • Make mapper method and its interface type accessible to SqlProvider. #1055
  • Allow using configuration properties in SqlProvider. #1061
  • Merge type handlers for JSR-310 (Java Date and Time API) into the core. #974
Bug fixes:
  • The type handler registered for a common interface of enums was not applied correctly. #976
  • Lazy loading should not overwrite a property value set by user. #988
  • Prevent foreach xml tag from polluting the global context. #966
  • Some parameter names (e.g. 'size') can cause ClassCastException. #1031
  • Not all result sets are processed when UPDATE or INSERT is performed in between. #1036
  • With PostgreSQL, ExecutorException is thrown if useGeneratedKeys is enabled globally. #902
There should be no backward incompatible change since 3.4.4.
Follow this link to see the full list of changes.
Binaries are available on the release page and Maven Central.

Many thanks to those who reported issues, sent pull requests or joined discussions!

The MyBatis Team

Saturday, June 24, 2017

MyBatis Step by Step Guide book available (Chinese)

MyBatis 从入门到精通

本书中从一个简单的MyBatis 查询入手,搭建起学习MyBatis 的基础开发环境。通过全面的示例代码和测试讲解了在MyBatis XML 方式和注解方式中进行增、删、改、查操作的基本用法,介绍了动态SQL在不同方面的应用以及在使用过程中的最佳实践方案。针对MyBatis 高级映射、存储过程和类型处理器提供了丰富的示例,通过自下而上的方法使读者更好地理解和掌握MyBatis 的高级用法,同时针对MyBatis的代码生成器提供了详细的配置介绍。此外,本书还提供了缓存配置、插件开发、Spring、Spring Boot 集成的详细内容。最后通过介绍Git 和GitHub 让读者了解MyBatis 开源项目,通过对MyBatis 源码和测试用例的讲解让读者更好掌握MyBatis。
This book starts with a simple MyBatis query and builds the basic development environment for learning MyBatis. Through the comprehensive sample code and test to explain in the MyBatis XML way and annotation way to insert, delete, update and select operation. Introduces the MyBatis dynamic SQL in different aspects and the best practices in the use of the program. For the MyBatis advanced mapping, stored procedures and typehandler provides a rich example, through the bottom-up approach to enable readers to better understand and master the advanced usage of MyBatis, and for MyBatis code generator provides a detailed configuration introduced in Chinese. In addition, the book also provides cache configuration, plug-in development, Spring, Spring Boot integration details. Finally, by introducing Git and GitHub to let readers know MyBatis open source project, through MyBatis source code and test cases to give readers a better grasp of MyBatis.
The book contains the following chapters.
  • MyBatis Quick Start
  • The basic usage of MyBatis XML
  • The basic usage of the MyBatis annotation
  • MyBatis Dynamic SQL
  • Mybatis Generator
  • MyBatis Advanced Query
  • MyBatis cache configuration
  • MyBatis plugin development
  • Spring integrates MyBatis
  • Spring Boot integrates MyBatis
  • MyBatis open source project
More details at: