package cn.iocoder.yudao.module.mes.framework.config;
|
|
import cn.iocoder.yudao.module.mes.framework.qrcode.MesProQrLabelBuilder;
|
import jakarta.annotation.PostConstruct;
|
import jakarta.annotation.Resource;
|
import org.springframework.context.annotation.Configuration;
|
|
/**
|
* MES 二维码相关配置:启动时将 traceBaseUrl 注入二维码标签构建器,避免侵入 Controller 调用点
|
*/
|
@Configuration(proxyBeanMethods = false)
|
public class MesQrCodeConfig {
|
|
@Resource
|
private MesProperties mesProperties;
|
|
@PostConstruct
|
public void init() {
|
MesProQrLabelBuilder.setTraceBaseUrl(mesProperties.getTraceBaseUrl());
|
}
|
|
}
|