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

com.centit.framework.config.SecurityDaoCondition Maven / Gradle / Ivy

There is a newer version: 5.0.2101
Show newest version
package com.centit.framework.config;

import com.centit.framework.common.SysParametersUtils;
import com.centit.support.algorithm.StringRegularOpt;
import org.springframework.context.annotation.Condition;
import org.springframework.context.annotation.ConditionContext;
import org.springframework.core.type.AnnotatedTypeMetadata;

/**
 * Created by zou_wy on 2017/4/18.
 */
public class SecurityDaoCondition implements Condition {

    @Override
    public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
        boolean isDao = StringRegularOpt.isTrue(SysParametersUtils.getStringValue("login.dao.enable"));
        return isDao;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy