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

club.kingyin.easycache.core.config.EngineSwitch Maven / Gradle / Ivy

The newest version!
package club.kingyin.easycache.core.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Condition;
import org.springframework.context.annotation.ConditionContext;
import org.springframework.core.type.AnnotatedTypeMetadata;

@Slf4j
public class EngineSwitch implements Condition {

    @Override
    public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
        String property = context.getEnvironment().getProperty("easycache.engine.module", String.class);
        log.info("EasyCache 加载引擎 [{}]",property);
        return true;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy