lodsve.mvc.properties.ServerProperties Maven / Gradle / Ivy
/*
* Copyright (C) 2018 Sun.Hao
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
package lodsve.mvc.properties;
import lodsve.core.properties.relaxedbind.annotations.ConfigurationProperties;
import java.util.List;
/**
* 系统配置.
*
* @author sunhao(sunhao.java @ gmail.com)
* @version V1.0, 15/10/10 下午10:01
*/
@ConfigurationProperties(prefix = "lodsve.server", locations = "${params.root}/framework/server.properties")
public class ServerProperties {
/**
* 前台URL
*/
private String frontEndUrl;
/**
* 服务端URL
*/
private String serverUrl;
/**
* debug配置
*/
private Debug debug;
public String getFrontEndUrl() {
return frontEndUrl;
}
public void setFrontEndUrl(String frontEndUrl) {
this.frontEndUrl = frontEndUrl;
}
public String getServerUrl() {
return serverUrl;
}
public void setServerUrl(String serverUrl) {
this.serverUrl = serverUrl;
}
public Debug getDebug() {
return debug;
}
public void setDebug(Debug debug) {
this.debug = debug;
}
public static class Debug {
/**
* 需要忽略的url
*/
private List excludeUrl;
/**
* 需要忽略的ip/address
*/
private List excludeAddress;
/**
* 当执行时间超长,将会警告
*/
private long maxProcessingTime = 3000;
public List getExcludeUrl() {
return excludeUrl;
}
public void setExcludeUrl(List excludeUrl) {
this.excludeUrl = excludeUrl;
}
public List getExcludeAddress() {
return excludeAddress;
}
public void setExcludeAddress(List excludeAddress) {
this.excludeAddress = excludeAddress;
}
public long getMaxProcessingTime() {
return maxProcessingTime;
}
public void setMaxProcessingTime(long maxProcessingTime) {
this.maxProcessingTime = maxProcessingTime;
}
}
}