A extension module of Mybatis Generator . Used to generate Service Class of corresponding Mapper Class
Add the JitPack repository to your build file
allprojects { repositories { ... maven { url 'https://jitpack.io' } } }
Add the dependency
dependencies { implementation 'com.github.zerochen2016:jc-mybatis-extension:{VERSION}' }
You can get Version in https://jitpack.io Visit and search https://github.com/zerochen2016/jc-mybatis-extension.git
- Create generatorConfig.xml And mybatis-extension.yml in src/resources/mybatis
- Run like demo
<public static void main(String args[]) throws Exception {ServiceGenerator.generate("table_name");}>