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