| | |
| | | package com.zy.acs.manager.common.config; |
| | | |
| | | import lombok.Data; |
| | | import org.springframework.boot.context.properties.ConfigurationProperties; |
| | | import org.springframework.context.annotation.Configuration; |
| | | |
| | |
| | | * 输送线plc系统配置 |
| | | * Created by luxiaotao on 2018/10/15 |
| | | */ |
| | | @Data |
| | | @Configuration |
| | | @ConfigurationProperties(prefix = "convey-plc") |
| | | public class ConveyorProperties { |
| | |
| | | |
| | | private Integer port; |
| | | |
| | | public static String getHostName() { |
| | | return HOST_NAME; |
| | | } |
| | | private String url; |
| | | |
| | | public static void setHostName(String hostName) { |
| | | HOST_NAME = hostName; |
| | | } |
| | | // millisecond |
| | | private Integer timeout = 15 * 1000; |
| | | |
| | | public String getHost() { |
| | | return host; |
| | | } |
| | | |
| | | public void setHost(String host) { |
| | | this.host = host; |
| | | } |
| | | |
| | | public Integer getPort() { |
| | | return port; |
| | | } |
| | | |
| | | public void setPort(Integer port) { |
| | | this.port = port; |
| | | } |
| | | } |