Commit 3f77bf3e authored by 张辰's avatar 张辰

local cache config

parent 6f8c2c4a
...@@ -2,6 +2,7 @@ package com.tanpu.community.config; ...@@ -2,6 +2,7 @@ package com.tanpu.community.config;
import com.tanpu.community.cache.RedisCache; import com.tanpu.community.cache.RedisCache;
import com.tanpu.community.util.SpringUtils; import com.tanpu.community.util.SpringUtils;
import lombok.Data;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -14,6 +15,7 @@ import org.springframework.stereotype.Component; ...@@ -14,6 +15,7 @@ import org.springframework.stereotype.Component;
import java.util.Arrays; import java.util.Arrays;
@Slf4j @Slf4j
@Data
@Component @Component
@ConfigurationProperties(prefix = "cache") @ConfigurationProperties(prefix = "cache")
public class CacheConfig { public class CacheConfig {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment