update - nacos配置 动态更新

This commit is contained in:
wangli 2024-04-17 22:08:29 +08:00
parent a52d56de49
commit 90a5493ce7

View File

@ -13,6 +13,7 @@ import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.slf4j.MDC;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.core.Ordered;
import org.springframework.stereotype.Component;
@ -35,6 +36,7 @@ import static cn.azxo.framework.common.constatns.Constants.CTX_LOG_ID_MDC;
@Component
@Aspect
@Slf4j
@RefreshScope
public class ErrorReportAspect implements Ordered {
@Value("${spring.profiles.active}")
private String profile;