dengzedong
2024-12-25 3ddbb6f6f8ecb625bf81b750a788e7d75309334c
提交 | 用户 | 时间
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 }