HttpProperties.java 526 Bytes
Newer Older
PWF-WK01\pengwufeng committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
/**
 * 
 */
package com.beecode.inz.war;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author huangkaibin
 *
 */
@Component
@ConfigurationProperties(prefix = HttpProperties.PROPERTIES_PREFIX, ignoreUnknownFields = true)
public class HttpProperties {

	public static final String PROPERTIES_PREFIX = "http";

	private int port = 8080;

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

}