潘志宝
3 天以前 8b98a3cb5017aedec0eb46716f1925fc8d624ec5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com.iailab.framework.translate.config;
 
import com.iailab.framework.translate.core.TranslateUtils;
import com.fhs.trans.service.impl.TransService;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.context.annotation.Bean;
 
@AutoConfiguration
public class IailabTranslateAutoConfiguration {
 
    @Bean
    @SuppressWarnings({"InstantiationOfUtilityClass", "SpringJavaInjectionPointsAutowiringInspection"})
    public TranslateUtils translateUtils(TransService transService) {
        TranslateUtils.init(transService);
        return new TranslateUtils();
    }
 
}