chenjiahe
2022-06-28 09b4c6896acdbfa6d5c0c0c5c24bfc17d6ee2bf3
包名称修改
6 文件已重命名
1个文件已删除
1个文件已添加
74 ■■■■ 已修改文件
src/main/java/com/hx/bean/annotations/RedisTempsClient.java 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/hx/bean/annotations/RedissonClient.java 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/hx/redisson/config/RedisBeanInit.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/hx/redisson/config/RedissonConfig.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/hx/redisson/config/RedissonUtil.java 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/hx/redisson/entity/RedissondbConfigEntity.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/hx/redisson/manager/RedisManager.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/hx/redisson/register/RedisRegister.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/hx/bean/annotations/RedisTempsClient.java
File was deleted
src/main/java/com/hx/bean/annotations/RedissonClient.java
New file
@@ -0,0 +1,24 @@
package com.hx.bean.annotations;
import com.hx.redisson.config.RedisBeanInit;
import com.hx.redisson.config.RedissonConfig;
import com.hx.redisson.config.RedissonUtil;
import com.hx.redisson.register.RedisRegister;
import org.springframework.context.annotation.Import;
import java.lang.annotation.*;
/**使用redis链接
 *这里的Import的两个类就是需要加载的bean,这样就可以通过简单的添加一个注解来加载自己自定义的bean了,而且可
 *以是很多个,可以打到jar包里面通过Maven引入都是ok的;
 * @author CJH
 * @date 202-06-17
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import({RedisBeanInit.class,RedisRegister.class, RedissonUtil.class, RedissonConfig.class})
public @interface RedissonClient {
}
src/main/java/com/hx/redisson/config/RedisBeanInit.java
File was renamed from src/main/java/com/hx/redisson/templates/config/RedisBeanInit.java
@@ -1,7 +1,7 @@
package com.hx.redisson.templates.config;
package com.hx.redisson.config;
import com.hx.redisson.templates.entity.RedissondbConfigEntity;
import com.hx.redisson.templates.manager.RedisManager;
import com.hx.redisson.entity.RedissondbConfigEntity;
import com.hx.redisson.manager.RedisManager;
import org.apache.commons.collections.CollectionUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
src/main/java/com/hx/redisson/config/RedissonConfig.java
File was renamed from src/main/java/com/hx/redisson/templates/config/RedisTempConfig.java
@@ -1,4 +1,4 @@
package com.hx.redisson.templates.config;
package com.hx.redisson.config;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.PropertyAccessor;
@@ -16,7 +16,7 @@
 */
@Configuration
@EnableCaching
public class RedisTempConfig {
public class RedissonConfig {
    @Bean
    public RedisTemplate<String, Object> redisTemplate(RedisConnectionFactory factory) {
        RedisTemplate<String, Object> template = new RedisTemplate<String, Object>();
src/main/java/com/hx/redisson/config/RedissonUtil.java
File was renamed from src/main/java/com/hx/redisson/templates/config/RedisTempsUtil.java
@@ -1,6 +1,6 @@
package com.hx.redisson.templates.config;
package com.hx.redisson.config;
import com.hx.redisson.templates.manager.RedisManager;
import com.hx.redisson.manager.RedisManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
@@ -19,9 +19,9 @@
 * @author CJH
 */
@Component
public class RedisTempsUtil {
public class RedissonUtil {
    private Logger logger = LoggerFactory.getLogger(RedisTempsUtil.class);
    private Logger logger = LoggerFactory.getLogger(RedissonUtil.class);
    @Autowired
    private RedisManager redisManager;
src/main/java/com/hx/redisson/entity/RedissondbConfigEntity.java
File was renamed from src/main/java/com/hx/redisson/templates/entity/RedissondbConfigEntity.java
@@ -1,4 +1,4 @@
package com.hx.redisson.templates.entity;
package com.hx.redisson.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
src/main/java/com/hx/redisson/manager/RedisManager.java
File was renamed from src/main/java/com/hx/redisson/templates/manager/RedisManager.java
@@ -1,4 +1,4 @@
package com.hx.redisson.templates.manager;
package com.hx.redisson.manager;
import org.springframework.data.redis.core.RedisTemplate;
src/main/java/com/hx/redisson/register/RedisRegister.java
File was renamed from src/main/java/com/hx/redisson/templates/register/RedisRegister.java
@@ -1,10 +1,10 @@
package com.hx.redisson.templates.register;
package com.hx.redisson.register;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.PropertyAccessor;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.jsontype.impl.LaissezFaireSubTypeValidator;
import com.hx.redisson.templates.entity.RedissondbConfigEntity;
import com.hx.redisson.entity.RedissondbConfigEntity;
import org.apache.commons.collections.CollectionUtils;
import org.redisson.Redisson;
import org.redisson.api.RedissonClient;