Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bartekbp/mybatis-hotreloader
Library for hot reloading mybatis xml mapper files
https://github.com/bartekbp/mybatis-hotreloader
autoreload hot java mybatis reload spring
Last synced: about 2 months ago
JSON representation
Library for hot reloading mybatis xml mapper files
- Host: GitHub
- URL: https://github.com/bartekbp/mybatis-hotreloader
- Owner: bartekbp
- License: mit
- Created: 2018-08-15T14:59:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-26T18:10:32.000Z (over 3 years ago)
- Last Synced: 2023-08-03T00:53:31.736Z (over 1 year ago)
- Topics: autoreload, hot, java, mybatis, reload, spring
- Language: Java
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.