org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration Java Examples
The following examples show how to use
org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MemcachedAutoConfigurationIT.java From memcached-spring-boot with Apache License 2.0 | 5 votes |
private void loadContext(Class<?> configuration, String... environment) { TestPropertyValues.of(environment).applyTo(applicationContext); applicationContext.register(configuration); applicationContext.register(MemcachedCacheAutoConfiguration.class); applicationContext.register(CacheAutoConfiguration.class); applicationContext.refresh(); }
Example #2
Source File: MemcachedCacheMeterBinderProviderConfigurationTest.java From memcached-spring-boot with Apache License 2.0 | 5 votes |
private void loadContext(Class<?> configuration, String... environment) { TestPropertyValues.of(environment).applyTo(context); context.register(configuration); context.register(MemcachedCacheAutoConfiguration.class); context.register(CacheAutoConfiguration.class); context.register(MemcachedCacheMeterBinderProviderConfiguration.class); context.refresh(); }
Example #3
Source File: MemcachedAutoConfigurationTest.java From memcached-spring-boot with Apache License 2.0 | 5 votes |
private void loadContext(Class<?> configuration, String... environment) { TestPropertyValues.of(environment).applyTo(applicationContext); applicationContext.register(configuration); applicationContext.register(MemcachedCacheAutoConfiguration.class); applicationContext.register(CacheAutoConfiguration.class); applicationContext.refresh(); }
Example #4
Source File: LoadBalancerCacheAutoConfigurationTests.java From spring-cloud-commons with Apache License 2.0 | 4 votes |
private ApplicationContextRunner baseApplicationRunner() { return new ApplicationContextRunner().withConfiguration(AutoConfigurations.of( CacheAutoConfiguration.class, LoadBalancerCacheAutoConfiguration.class)); }