mybatis-plus-plus(mpp)
针对mybatis-plus只能进行单表操作,通过使用此插件,可以支持两表关联查询
github: https://github.com/nullbull/mybatis-plus-plus
gitee: https://gitee.com/nullbull/mybatis-plus-plus 欢迎大家提需求,issue,改进意见,感谢各位
demo可见 https://github.com/nullbull/mybatis-plus-plus-demo
接入步骤
-
将代码down到本地,使用maven install
-
在自己的项目中添加依赖
<dependency> <groupId>com.github.mybatisplus</groupId> <artifactId>plus</artifactId> <version>1.0-SNAPSHOT</version> </dependency>
-
配置方式
-
SpringBoot 配置
@Configuration public class MybatisPlusConfig { @Bean public Interceptor myInterceptor() { return new MyInterceptor()
-