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

com.emily.infrastructure.web.request.RequestProperties Maven / Gradle / Ivy

The newest version!
package com.emily.infrastructure.web.request;

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

/**
 * 拦截器属性配置类
 *
 * @author Emily
 * @since 2020/03/19
 */
@ConfigurationProperties(prefix = RequestProperties.PREFIX)
public class RequestProperties {
    /**
     * 属性配置前缀
     */
    public static final String PREFIX = "spring.emily.request";
    /**
     * 组件开关
     */
    private boolean enabled;

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy