#
Junjie
2 天以前 cd73edd54bd9631d247e0d7c3aa06c5909d91135
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.core.config;
 
import com.baomidou.mybatisplus.plugins.PaginationInterceptor;
import com.core.common.SnowflakeIdWorker;
import com.core.common.SpringUtils;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
 
@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();
    }
}