All Downloads are FREE. Search and download functionalities are using the official Maven repository.

template.config.mybatis_plus_config.vm Maven / Gradle / Ivy

Go to download

自动生成增删改查代码插件,通过Maven插件配置,一键生成单表的所有CRUD操作

There is a newer version: 3.0.4
Show newest version
package ${package.MybatisPlusConfig};

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 分页插件
 *
 * @author ${author}
 * @since ${date}
 */
@EnableTransactionManagement
@Configuration
public class MybatisPlusConfig {
    /**
     * 分页插件
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        PaginationInterceptor paginationInterceptor = new PaginationInterceptor();
        //分页限制,防止炸库,限制放开
        paginationInterceptor.setLimit(-1L);
        return paginationInterceptor;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy