33 lines
703 B
Java
33 lines
703 B
Java
|
|
package com.dpkj.common.config;
|
|||
|
|
|
|||
|
|
import lombok.Data;
|
|||
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|||
|
|
import org.springframework.context.annotation.Configuration;
|
|||
|
|
import org.springframework.stereotype.Component;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* @Auther: 萧道子
|
|||
|
|
* @Date: 2024/4/28 14:55
|
|||
|
|
* @Description:
|
|||
|
|
*/
|
|||
|
|
@Data
|
|||
|
|
@Component
|
|||
|
|
@ConfigurationProperties(prefix = "dpkj.printer")
|
|||
|
|
public class PrinterConfig {
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 打印机连接方式 USB: usb连接 | BTMS:串口连接
|
|||
|
|
*/
|
|||
|
|
private String connectionType;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 打印端口 串口连接下使用
|
|||
|
|
*/
|
|||
|
|
private String portName;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 波特率 串口连接下使用
|
|||
|
|
*/
|
|||
|
|
private Integer baudRate;
|
|||
|
|
}
|