Skip to content

bartekbp/mybatis-hotreloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mybatis-hotreloader

The goal of this project is to hot reload changed mybatis mapper files. Current version is experimental and by no means safe to run in production.

How to use:

In your spring configuration declare a bean:

  @Bean
  public MybatisHotReloader hotreloader(SqlSessionFactory sqlSessionFactory) {
    return new MybatisHotReloader(getMapperLocations(), sqlSessionFactory.getConfiguration());
  }

That's it. The plugin relies on watching mybatis files, so you need to ensure that once you change a mapper file, it gets copied to your build system output directory. In case of Maven+Intellij Idea, it's as easy as forcing file compilation with ctrl+shift+f9 shortcut.

About

Library for hot reloading mybatis xml mapper files

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages