@Configuration @ComponentScan(value="com.dsg.category") @EnableAutoConfiguration @EnableSwagger2 public class CategoryServiceConfig extends Object
Modifier and Type | Field and Description |
---|---|
static String |
breadcrumbCacheName |
static String |
cacheName
The cache name.
|
Constructor and Description |
---|
CategoryServiceConfig() |
Modifier and Type | Method and Description |
---|---|
springfox.documentation.spring.web.plugins.Docket |
api()
Api.
|
org.springframework.data.redis.cache.RedisCacheManager |
cacheManager(org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory connectionFactory) |
org.springframework.data.redis.cache.RedisCacheManager |
categoryCacheManager(org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory connectionFactory)
Cache manager.
|
org.springframework.data.redis.core.RedisTemplate<String,Object> |
redisTemplate(org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory connectionFactory) |
public static String cacheName
public static String breadcrumbCacheName
@Bean public springfox.documentation.spring.web.plugins.Docket api() throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException
- Signals that an I/O exception has occurred.org.codehaus.plexus.util.xml.pull.XmlPullParserException
- the xml pull parser exception@Bean @Qualifier(value="categoryManager") public org.springframework.data.redis.cache.RedisCacheManager categoryCacheManager(org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory connectionFactory)
connectionFactory
- the connection factory@Bean @Qualifier(value="breadcrumbManager") public org.springframework.data.redis.cache.RedisCacheManager cacheManager(org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory connectionFactory)
Copyright © 2021. All rights reserved.