package com.zy.asrs.framework.config; //import com.baomidou.mybatisplus.plugins.PaginationInterceptor; import com.zy.asrs.framework.common.SnowflakeIdWorker; import com.zy.asrs.framework.common.SpringUtils; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; /** * Created by vincent on 2019-06-10 */ @Configuration public class CoolBaseConfig { // @Bean // public PaginationInterceptor paginationInterceptor() { // return new PaginationInterceptor(); // } @Bean public SpringUtils getSpringUtils(){ return new SpringUtils(); } @Bean public SnowflakeIdWorker snowflakeIdWorker(){ return new SnowflakeIdWorker(); } }