Commit 282db3c6bce62708937fbd1905dd5075329f5a20
1 parent
e367cb7d
fix: 设备传输服务无法单独部署问题修复
1、只部署tb-mqtt-transport提示缺少依赖
Showing
1 changed file
with
2 additions
and
0 deletions
... | ... | @@ -10,6 +10,7 @@ import org.aspectj.lang.ProceedingJoinPoint; |
10 | 10 | import org.aspectj.lang.annotation.Around; |
11 | 11 | import org.aspectj.lang.annotation.Aspect; |
12 | 12 | import org.aspectj.lang.annotation.Pointcut; |
13 | +import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression; | |
13 | 14 | import org.springframework.stereotype.Component; |
14 | 15 | import org.thingsboard.server.common.data.yunteng.common.YtCommonService; |
15 | 16 | import org.thingsboard.server.common.data.yunteng.common.aspect.annotation.AutoDict; |
... | ... | @@ -27,6 +28,7 @@ import java.util.List; |
27 | 28 | @Component |
28 | 29 | @Slf4j |
29 | 30 | @RequiredArgsConstructor |
31 | +@ConditionalOnExpression("('${service.type:null}'=='monolith' || '${service.type:null}'=='tb-core') ") | |
30 | 32 | public class SysDictAspect { |
31 | 33 | |
32 | 34 | private final YtCommonService commonService; | ... | ... |