All Downloads are FREE. Search and download functionalities are using the official Maven repository.

lodsve.mvc.properties.ServerProperties Maven / Gradle / Ivy

There is a newer version: 2.7.5-RELEASE
Show newest version
package lodsve.mvc.properties;

import lodsve.core.properties.autoconfigure.annotations.ConfigurationProperties;

import java.util.List;

/**
 * 系统配置.
 *
 * @author sunhao(sunhao.java @ gmail.com)
 * @version V1.0, 15/10/10 下午10:01
 */
@ConfigurationProperties(prefix = "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;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy