diff --git a/yudao-framework/yudao-spring-boot-starter-mybatis/src/main/java/cn/iocoder/yudao/framework/translate/config/YudaoTranslateAutoConfiguration.java b/yudao-framework/yudao-spring-boot-starter-mybatis/src/main/java/cn/iocoder/yudao/framework/translate/config/YudaoTranslateAutoConfiguration.java index 307b5a1cb..9555ac9d4 100644 --- a/yudao-framework/yudao-spring-boot-starter-mybatis/src/main/java/cn/iocoder/yudao/framework/translate/config/YudaoTranslateAutoConfiguration.java +++ b/yudao-framework/yudao-spring-boot-starter-mybatis/src/main/java/cn/iocoder/yudao/framework/translate/config/YudaoTranslateAutoConfiguration.java @@ -3,12 +3,14 @@ package cn.iocoder.yudao.framework.translate.config; import cn.iocoder.yudao.framework.translate.core.TranslateUtils; import org.dromara.trans.service.impl.TransService; import org.springframework.boot.autoconfigure.AutoConfiguration; +import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; import org.springframework.context.annotation.Bean; @AutoConfiguration public class YudaoTranslateAutoConfiguration { @Bean + @ConditionalOnBean(TransService.class) @SuppressWarnings("InstantiationOfUtilityClass") public TranslateUtils translateUtils(TransService transService) { TranslateUtils.init(transService); diff --git a/yudao-server/src/main/resources/application-dev.yaml b/yudao-server/src/main/resources/application-dev.yaml index 83160a8cc..d5e263867 100644 --- a/yudao-server/src/main/resources/application-dev.yaml +++ b/yudao-server/src/main/resources/application-dev.yaml @@ -188,7 +188,6 @@ justauth: prefix: 'social_auth_state:' # 缓存前缀,目前只对 Redis 缓存生效,默认 JUSTAUTH::STATE:: timeout: 24h # 超时时长,目前只对 Redis 缓存生效,默认 3 分钟 - --- #################### iot相关配置 TODO 芋艿:再瞅瞅 #################### iot: emq: @@ -207,7 +206,6 @@ iot: # 清除会话(设置为false,断开连接,重连后使用原来的会话 保留订阅的主题,能接收离线期间的消息) clearSession: true - # 插件配置 pf4j: pluginsDir: ${user.home}/plugins # 插件目录 \ No newline at end of file