12 小时以前 6d910029b6c81db0a2b66caa66952781397b153a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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());
    }
 
}