Junjie
6 天以前 72c49f3afa22c4f84760d57001e45a4fadf2d482
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.zy.common.config;
 
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 CoreCompatConfig {
 
    @Bean
    public SnowflakeIdWorker snowflakeIdWorker() {
        return new SnowflakeIdWorker();
    }
 
    @Bean
    public SpringUtils springUtils() {
        return new SpringUtils();
    }
}