Java 类org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration 实例源码

项目:memcached-spring-boot    文件:MemcachedAutoConfigurationTest.java   
private void loadContext(Class<?> configuration, String... environment) {
    EnvironmentTestUtils.addEnvironment(applicationContext, environment);

    applicationContext.register(configuration);
    applicationContext.register(MemcachedCacheAutoConfiguration.class);
    applicationContext.register(CacheAutoConfiguration.class);
    applicationContext.refresh();
}