潘志宝
4 天以前 c9b5501a06f91aa6b9cd7b879b4b6b16e445a155
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com.iailab.framework.dict.config;
 
import com.iailab.framework.dict.core.DictFrameworkUtils;
import com.iailab.module.system.api.dict.DictDataApi;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.context.annotation.Bean;
 
@AutoConfiguration
public class IailabDictAutoConfiguration {
 
    @Bean
    @SuppressWarnings("InstantiationOfUtilityClass")
    public DictFrameworkUtils dictUtils(DictDataApi dictDataApi) {
        DictFrameworkUtils.init(dictDataApi);
        return new DictFrameworkUtils();
    }
 
}