Thursday, November 26, 2015

Mybatis-Spring-Boot released!

Dear Community,

We are pleased to announce the release of mybatis-spring-boot version 1.0.0.

Now, you can include mybatis in your spring-boot projects and everything will be auto-configured.

Project is available on GitHub.


Sunday, November 8, 2015

Spring 4 got you down with no ibatis support - no worries Mybatis has your back

Spring is well on it's way to leaving 3 behind.  For ibatis users that for one reason or another are stuck to ibatis, but want to just make the jump to spring 4, there is a dilemma.  This dilemma roots in the fact that spring team dropped ibatis in spring 4.  Until now this meant that upgrading to spring 4 required upgrading ibatis to mybatis and mybatis-spring.  Well in order to mitigate risk to those that need it, mybatis team has decided to extract the spring 3 ibatis support into a new mybatis project called 'mybatis-2-spring'.  Better still, we go one step further and have released a fresh copy of 'mybatis-2'.  So there you have it, all of the users out there dealing with legacy code, mybatis is no longer directly tied into the mix resulting in higher risk in upgrading.  With that said, enjoy what's left in the ibatis land as we resurrect the past.


Jeremy Landis and MyBatis Team

Tuesday, July 28, 2015

MyBatis-Guice 3.7 Released!

Dear Community,

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

Provides some new features:
  • @Transactional annotation support JTA transactions through MyBatisJtaModule
  • Some other minor improvements 
 See the details at

It is available in Github and Maven Central.

Big thanks for your support and enjoy!

Friday, June 19, 2015

Mybatis-spring 1.2.3 Released!

Mybatis team is pleased to announce the release of mybatis-spring 1.2.3.  This is generally a micro release with bug fixes over prior release.

  • Custom FactoryBean on MapperScan annotation added, see
  • SqlSessionFactoryBean falls in circular dependencies by Spring Boot's DataSourceInitializer, see
  • And far too many maven build updates to count including spring 3.2.13 and mybatis 3.2.8 base support.

If anything you wanted to see was missed, please file a PR or comment on outstanding PR to see in a future release.


Jeremy Landis


Sunday, May 24, 2015

MyBatis 3.3.0 released!

Dear Community,

We have just released MyBatis 3.3.0.

Includes two main changes:

  • Ognl has been upgraded to 3.0.11 that is the latest version 
  • The default proxy tool is now Javassist and is included inside the mybatis jar 

There are some other minor changes and bug fixes. See the details at 

Note that you can still use CGLIB as the proxy factory tool by adding CGLIB to your classpath and setting the MyBatis global parameter as follows:

    <setting name="proxyFactory" value="CGLIB"/>

It is available as usual in Github and Maven Central.

The MyBatis Team.

Sunday, March 8, 2015

FreeMarker plugin for MyBatis

Kostromin Igor has created a project to provide a FreeMarker plugin for MyBatis.

This is how a mapper looks like with FreeMarker:

@Select("select * from names where id in (${ids?join(',')})")
List<Name> findNamesByIds(@Param("ids") List<Integer> ids);

You can also use FreeMarker templates this way:

Name findName(@Param("n") String name);

Where findName.ft1 is:

FROM names
where firstName = <@p name="n"/>
See more and contribute at the project's page at Github