diff --git a/bin/deploy.sh b/bin/deploy.sh index 3a156c9b0..ce295c7c1 100644 --- a/bin/deploy.sh +++ b/bin/deploy.sh @@ -8,11 +8,11 @@ set -e DATE=$(date +%Y%m%d%H%M) # 基础路径 -BASE_PATH=/work/projects/dashboard +BASE_PATH=/work/projects/yudao-admin-server # 编译后 jar 的地址。部署时,Jenkins 会上传 jar 包到该目录下 SOURCE_PATH=$BASE_PATH/build # 服务名称。同时约定部署服务的 jar 包名字也为它。 -SERVER_NAME=dashboard +SERVER_NAME=yudao-admin-server # 环境 PROFILES_ACTIVE=dev # 健康检查 URL diff --git a/yudao-admin-server/src/main/resources/application.yaml b/yudao-admin-server/src/main/resources/application.yaml index 21227d559..486d4a487 100644 --- a/yudao-admin-server/src/main/resources/application.yaml +++ b/yudao-admin-server/src/main/resources/application.yaml @@ -56,7 +56,7 @@ yudao: db-schemas: ${spring.datasource.dynamic.datasource.master.name} error-code: # 错误码相关配置项 constants-class-list: - - cn.iocoder.dashboard.modules.infra.enums.InfErrorCodeConstants - - cn.iocoder.dashboard.modules.system.enums.SysErrorCodeConstants + - cn.iocoder.yudao.adminserver.modules.infra.enums.InfErrorCodeConstants + - cn.iocoder.yudao.adminserver.modules.system.enums.SysErrorCodeConstants debug: false diff --git a/yudao-admin-server/src/main/resources/logback-spring.xml b/yudao-admin-server/src/main/resources/logback-spring.xml index 1d9bec6dc..5bc181fd2 100644 --- a/yudao-admin-server/src/main/resources/logback-spring.xml +++ b/yudao-admin-server/src/main/resources/logback-spring.xml @@ -58,19 +58,19 @@ - + - + - + - + diff --git a/yudao-dependencies/pom.xml b/yudao-dependencies/pom.xml index 7fab31091..5556b6be2 100644 --- a/yudao-dependencies/pom.xml +++ b/yudao-dependencies/pom.xml @@ -36,6 +36,7 @@ 8.5.0 2.3.1 + 0.30.0 7.2.6.RELEASE 0.1.16 @@ -252,6 +253,11 @@ apm-toolkit-opentracing ${skywalking.version} + + io.opentracing + opentracing-util + ${opentracing.version} + de.codecentric @@ -379,7 +385,7 @@ io.opentracing - opentracing-noop + opentracing-util io.opentracing diff --git a/yudao-framework/yudao-spring-boot-starter-biz-operatelog/src/main/java/cn/iocoder/yudao/framework/operatelog/core/aop/OperateLogAspect.java b/yudao-framework/yudao-spring-boot-starter-biz-operatelog/src/main/java/cn/iocoder/yudao/framework/operatelog/core/aop/OperateLogAspect.java index 1c5580c7a..a7f23a391 100644 --- a/yudao-framework/yudao-spring-boot-starter-biz-operatelog/src/main/java/cn/iocoder/yudao/framework/operatelog/core/aop/OperateLogAspect.java +++ b/yudao-framework/yudao-spring-boot-starter-biz-operatelog/src/main/java/cn/iocoder/yudao/framework/operatelog/core/aop/OperateLogAspect.java @@ -340,7 +340,7 @@ public class OperateLogAspect { // 递归,处理数组、Collection、Map 的情况 if (Collection.class.isAssignableFrom(clazz)) { return ((Collection) object).stream() - .anyMatch((Predicate) o -> isIgnoreArgs(object)); + .anyMatch((Predicate) OperateLogAspect::isIgnoreArgs); } if (Map.class.isAssignableFrom(clazz)) { return isIgnoreArgs(((Map) object).values()); diff --git a/yudao-framework/yudao-spring-boot-starter-monitor/pom.xml b/yudao-framework/yudao-spring-boot-starter-monitor/pom.xml index 7b3a315ae..0fa5ac5d5 100644 --- a/yudao-framework/yudao-spring-boot-starter-monitor/pom.xml +++ b/yudao-framework/yudao-spring-boot-starter-monitor/pom.xml @@ -53,6 +53,10 @@ org.apache.skywalking apm-toolkit-opentracing + + io.opentracing + opentracing-util + de.codecentric diff --git a/yudao-framework/yudao-spring-boot-starter-monitor/src/main/java/cn/iocoder/yudao/framework/tracer/config/YudaoTracerAutoConfiguration.java b/yudao-framework/yudao-spring-boot-starter-monitor/src/main/java/cn/iocoder/yudao/framework/tracer/config/YudaoTracerAutoConfiguration.java index 6c2422a4e..ce1bf8613 100644 --- a/yudao-framework/yudao-spring-boot-starter-monitor/src/main/java/cn/iocoder/yudao/framework/tracer/config/YudaoTracerAutoConfiguration.java +++ b/yudao-framework/yudao-spring-boot-starter-monitor/src/main/java/cn/iocoder/yudao/framework/tracer/config/YudaoTracerAutoConfiguration.java @@ -33,7 +33,7 @@ public class YudaoTracerAutoConfiguration { @Bean @ConditionalOnMissingBean public BizTraceAspect bizTracingAop() { - return new BizTraceAspect(); + return new BizTraceAspect(tracer()); } @Bean diff --git a/yudao-framework/yudao-spring-boot-starter-monitor/src/main/java/cn/iocoder/yudao/framework/tracer/core/aop/BizTraceAspect.java b/yudao-framework/yudao-spring-boot-starter-monitor/src/main/java/cn/iocoder/yudao/framework/tracer/core/aop/BizTraceAspect.java index 1bc9d18a7..e4c6810d1 100644 --- a/yudao-framework/yudao-spring-boot-starter-monitor/src/main/java/cn/iocoder/yudao/framework/tracer/core/aop/BizTraceAspect.java +++ b/yudao-framework/yudao-spring-boot-starter-monitor/src/main/java/cn/iocoder/yudao/framework/tracer/core/aop/BizTraceAspect.java @@ -6,6 +6,7 @@ import cn.iocoder.yudao.framework.tracer.core.annotation.BizTrace; import cn.iocoder.yudao.framework.common.util.sping.SpringExpressionUtils; import io.opentracing.Span; import io.opentracing.Tracer; +import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.Around; @@ -22,19 +23,19 @@ import static java.util.Arrays.asList; * @author mashu */ @Aspect +@AllArgsConstructor @Slf4j public class BizTraceAspect { private static final String BIZ_OPERATION_NAME_PREFIX = "Biz/"; - @Resource - private Tracer tracer; + private final Tracer tracer; @Around(value = "@annotation(trace)") public Object around(ProceedingJoinPoint joinPoint, BizTrace trace) throws Throwable { // 创建 span String operationName = getOperationName(joinPoint, trace); - Span span = tracer.buildSpan(operationName).startManual(); + Span span = tracer.buildSpan(operationName).start(); try { // 执行原有方法 return joinPoint.proceed(); diff --git a/yudao-framework/yudao-spring-boot-starter-mq/src/main/java/cn/iocoder/yudao/framework/mq/config/YudaoMQAutoConfiguration.java b/yudao-framework/yudao-spring-boot-starter-mq/src/main/java/cn/iocoder/yudao/framework/mq/config/YudaoMQAutoConfiguration.java index e105dd8f3..8b3366dd7 100644 --- a/yudao-framework/yudao-spring-boot-starter-mq/src/main/java/cn/iocoder/yudao/framework/mq/config/YudaoMQAutoConfiguration.java +++ b/yudao-framework/yudao-spring-boot-starter-mq/src/main/java/cn/iocoder/yudao/framework/mq/config/YudaoMQAutoConfiguration.java @@ -3,6 +3,7 @@ package cn.iocoder.yudao.framework.mq.config; import cn.hutool.system.SystemUtil; import cn.iocoder.yudao.framework.mq.core.pubsub.AbstractChannelMessageListener; import cn.iocoder.yudao.framework.mq.core.stream.AbstractStreamMessageListener; +import cn.iocoder.yudao.framework.redis.config.YudaoRedisAutoConfiguration; import lombok.extern.slf4j.Slf4j; import org.springframework.boot.autoconfigure.AutoConfigureAfter; import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration; @@ -26,7 +27,7 @@ import java.util.List; * @author 芋道源码 */ @Configuration -@AutoConfigureAfter(YudaoMQAutoConfiguration.class) +@AutoConfigureAfter(YudaoRedisAutoConfiguration.class) @Slf4j public class YudaoMQAutoConfiguration {