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

net.guerlab.sms.server.autoconfigure.WebEnableCondition Maven / Gradle / Ivy

package net.guerlab.sms.server.autoconfigure;

import org.springframework.context.annotation.Condition;
import org.springframework.context.annotation.ConditionContext;
import org.springframework.core.type.AnnotatedTypeMetadata;

/**
 * web启用判断
 *
 * @author guer
 *
 */
public class WebEnableCondition implements Condition {

    @Override
    public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
        return context.getEnvironment().getProperty("sms.enable-web", Boolean.TYPE, false);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy