java-useful-plugins
Useful plugins in Java
MyBatis plugins
Mybatis-spring-boot-starter plugins provide plugins like enum type handlers.
For more usage, refer to mybatis-plugins-demo.
MyBatisEnumTypeHandler
Provide easy way to store/retrieve enum type to/from mybatis. All you need is to configure your enum package.
-
Include mybatis-plugins jar in your class path.
Maven:
<dependency> <groupId>com.github.pepelu0</groupId> <artifactId>mybatis-spring-boot-extensions</artifactId> <version>0.0.1</version> </dependency>
-
Configure your enum package to be recognized as MyBatisEnumType.
For properties file:
mybatis.plugins.enum-package: **