Skip to content

Commit

Permalink
修改依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
周子斐 committed Jan 25, 2021
1 parent 34ef420 commit 311595b
Show file tree
Hide file tree
Showing 111 changed files with 312 additions and 440 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/zhouzifei/tool/annotation/BussinessLog.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

/**
* 日志记录、自定义注解
* @author Dabao (17611555590@163.com)
* @author Dabao (17600004572@163.com)
* @version 1.0
* @website https://www.shengdingbox.com
* @website https://www.zhouzifei.com
* @date 2019年7月16日
* @since 1.0
*/
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/zhouzifei/tool/annotation/RedisCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

/**
* Redis缓存自定义注解
* @author Dabao (17611555590@163.com)
* @author Dabao (17600004572@163.com)
* @version 1.0
* @website https://www.shengdingbox.com
* @website https://www.zhouzifei.com
* @date 2019年7月16日
* @since 1.0
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
*
* 要注意,这个类里面的代码一定不能有异常或者潜在异常发生,否则可能会让程序陷入死循环。
*
* @author Dabao (17611555590@163.com)
* @author Dabao (17600004572@163.com)
* @version 1.0
* @website https://www.shengdingbox.com
* @website https://www.zhouzifei.com
* @date 2019年7月16日
* @since 1.0
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
/**
* 统一异常处理类
* 捕获程序所有异常,针对不同异常,采取不同的处理方式
* @author Dabao (17611555590@163.com)
* @author Dabao (17600004572@163.com)
* @version 1.0
* @website https://www.shengdingbox.com
* @website https://www.zhouzifei.com
* @date 2019年7月16日
* @since 1.0
*/
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/zhouzifei/tool/api/OssApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@

/**
*
* @author Dabao (17611555590@163.com)
* @author Dabao (17600004572@163.com)
* @version 1.0
* @website https://www.shengdingbox.com
* @website https://www.zhouzifei.com
* @date 2019年7月16日
* @since 1.0
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

/**
* AOP切面记录日志
* @author Dabao (17611555590@163.com)
* @author Dabao (17600004572@163.com)
* @version 1.0
* @website https://www.shengdingbox.com
* @website https://www.zhouzifei.com
* @date 2019年7月16日
* @since 1.0
*/
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/com/zhouzifei/tool/aspect/ConfigKeyEnum.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

/**
*
* @author Dabao (17611555590@163.com)
* @author Dabao (17600004572@163.com)
* @version 1.0
* @website https://www.shengdingbox.com
* @website https://www.zhouzifei.com
* @date 2019年7月16日
* @since 1.0
*/
Expand Down Expand Up @@ -190,9 +190,9 @@ public enum ConfigKeyEnum {

/**
<<<<<<< HEAD:blog-service/src/main/java/com/shengdingbox/blog/business/enums/ConfigKeyEnum.java
* 当切换浏览器tab时,在原tab上的标题https://www.shengdingbox.comox.com上的“麻溜儿回来~~~”
* 当切换浏览器tab时,在原tab上的标题https://www.zhouzifei.comox.com上的“麻溜儿回来~~~”
=======
* 当切换浏览器tab时,在原tab上的标题。比如https://www.shengdingbox.com上的“麻溜儿回来~~~”
* 当切换浏览器tab时,在原tab上的标题。比如https://www.zhouzifei.com上的“麻溜儿回来~~~”
>>>>>>> origin/origin:blog-service/src/main/java/com/shengdingbox/blog/business/enums/ConfigKeyEnum.java
*/
DYNAMIC_TITLE("dynamicTitle"),
Expand Down
16 changes: 8 additions & 8 deletions src/main/java/com/zhouzifei/tool/aspect/RedisCacheAspect.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.zhouzifei.tool.aspect;

import com.zhouzifei.tool.annotation.RedisCache;
import com.zhouzifei.tool.service.RedisService;
import com.zhouzifei.tool.util.AspectUtil;
import com.zhouzifei.tool.util.RedisUtils;
import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
Expand All @@ -16,9 +16,9 @@

/**
* Redis业务层数据缓存
* @author Dabao (17611555590@163.com)
* @author Dabao (17600004572@163.com)
* @version 1.0
* @website https://www.shengdingbox.com
* @website https://www.zhouzifei.com
* @date 2019年7月16日
* @since 1.0
*/
Expand All @@ -30,7 +30,7 @@ public class RedisCacheAspect {
private static final String BIZ_CACHE_PREFIX = "biz_cache_";

@Autowired
private RedisService redisService;
private RedisUtils redisUtils;

@Pointcut(value = "@annotation(com.zhouzifei.tool.annotation.RedisCache)")
public void pointcut() {
Expand All @@ -49,22 +49,22 @@ public Object handle(ProceedingJoinPoint point) throws Throwable {
if (flush) {
String classPrefix = AspectUtil.INSTANCE.getKey(point, BIZ_CACHE_PREFIX);
log.info("清空缓存 - {}*", classPrefix);
redisService.delBatch(classPrefix);
redisUtils.delBatch(classPrefix);
return point.proceed();
}
String key = AspectUtil.INSTANCE.getKey(point, cache.key(), BIZ_CACHE_PREFIX);
boolean hasKey = redisService.hasKey(key);
boolean hasKey = redisUtils.hasKey(key);
if (hasKey) {
try {
log.info("{}从缓存中获取数据", key);
return redisService.get(key);
return redisUtils.get(key);
} catch (Exception e) {
log.error("从缓存中获取数据失败!", e);
}
}
//先执行业务
Object result = point.proceed();
redisService.set(key, result, cache.expire(), cache.unit());
redisUtils.set(key, (String) result, cache.expire(), cache.unit());
log.info("{}从数据库中获取数据", key);
return result;
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/zhouzifei/tool/config/AsyncConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@

/**
* 异步线程配置
* @author Dabao (17611555590@163.com)
* @author Dabao (17600004572@163.com)
* @version 1.0
* @website https://www.shengdingbox.com
* @website https://www.zhouzifei.com
* @date 2019年7月16日
* @since 1.0
*/
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/zhouzifei/tool/config/ErrorPagesConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

/**
* 自定义的异常页面配置
* @author Dabao (17611555590@163.com)
* @author Dabao (17600004572@163.com)
* @version 1.0
* @website https://www.shengdingbox.com
* @website https://www.zhouzifei.com
* @date 2019年7月16日
* @since 1.0
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

/**
*
* @author Dabao (17611555590@163.com)
* @author Dabao (17600004572@163.com)
* @version 1.0
* @website https://www.shengdingbox.com
* @website https://www.zhouzifei.com
* @date 2019年7月16日
* @since 1.0
*/
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/zhouzifei/tool/config/MybatisConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

/**
*
* @author Dabao (17611555590@163.com)
* @author Dabao (17600004572@163.com)
* @version 1.0
* @website https://www.shengdingbox.com
* @website https://www.zhouzifei.com
* @date 2019年7月16日
* @since 1.0
*/
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/zhouzifei/tool/config/RedisConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@

/**
*
* @author Dabao (17611555590@163.com)
* @author Dabao (17600004572@163.com)
* @version 1.0
* @website https://www.shengdingbox.com
* @website https://www.zhouzifei.com
* @date 2019年7月16日
* @since 1.0
*/
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/zhouzifei/tool/config/RedisProperties.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

/**
* redis属性配置文件
* @author Dabao (17611555590@163.com)
* @author Dabao (17600004572@163.com)
* @version 1.0
* @website https://www.shengdingbox.com
* @website https://www.zhouzifei.com
* @date 2019年7月16日
* @since 1.0
*/
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/zhouzifei/tool/config/SchedulingConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@

/**
*
* @author Dabao (17611555590@163.com)
* @author Dabao (17600004572@163.com)
* @version 1.0
* @website https://www.shengdingbox.com
* @website https://www.zhouzifei.com
* @date 2019年7月16日
* @since 1.0
*/
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/zhouzifei/tool/config/TomcatConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

/**
* Tomcat相关配置
* @author Dabao (17611555590@163.com)
* @author Dabao (17600004572@163.com)
* @version 1.0
* @website https://www.shengdingbox.com
* @website https://www.zhouzifei.com
* @date 2019年7月16日
* @since 1.0
*/
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/zhouzifei/tool/config/ValidatorConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

/**
*
* @author Dabao (17611555590@163.com)
* @author Dabao (17600004572@163.com)
* @version 1.0
* @website https://www.shengdingbox.com
* @website https://www.zhouzifei.com
* @date 2019年7月16日
* @since 1.0
*/
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/zhouzifei/tool/consts/ApiUrlConst.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

/**
* 各api需要的url常量类
* @author Dabao (17611555590@163.com)
* @author Dabao (17600004572@163.com)
* @version 1.0
* @website https://www.shengdingbox.com
* @website https://www.zhouzifei.com
* @date 2019年7月16日
* @since 1.0
*/
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/zhouzifei/tool/consts/CachePrefixEnum.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

/**
*
* @author Dabao (17611555590@163.com)
* @author Dabao (17600004572@163.com)
* @version 1.0
* @website https://www.shengdingbox.com
* @website https://www.zhouzifei.com
* @date 2019年7月16日
* @since 1.0
*/
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/zhouzifei/tool/consts/CommonConst.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

/**
* 程序中公用的常量类
* @author Dabao (17611555590@163.com)
* @author Dabao (17600004572@163.com)
* @version 1.0
* @website https://www.shengdingbox.com
* @website https://www.zhouzifei.com
* @date 2019年7月16日
* @since 1.0
*/
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/zhouzifei/tool/consts/DateConst.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

/**
* 日期工具用到的常量
* @author Dabao (17611555590@163.com)
* @author Dabao (17600004572@163.com)
* @version 1.0
* @website https://www.shengdingbox.com
* @website https://www.zhouzifei.com
* @date 2019年7月16日
* @since 1.0
*/
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/zhouzifei/tool/consts/FileConst.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

/**
* 文件常量类
* @author Dabao (17611555590@163.com)
* @author Dabao (17600004572@163.com)
* @version 1.0
* @website https://www.shengdingbox.com
* @website https://www.zhouzifei.com
* @date 2019年7月16日
* @since 1.0
*/
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/zhouzifei/tool/consts/FileUploadType.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

/**
*
* @author Dabao (17611555590@163.com)
* @author Dabao (17600004572@163.com)
* @version 1.0
* @website https://www.shengdingbox.com
* @website https://www.zhouzifei.com
* @date 2019年7月16日
* @since 1.0
*/
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/zhouzifei/tool/consts/HttpConsts.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

/**
* 超文本协议工具类
* @author Dabao (17611555590@163.com)
* @author Dabao (17600004572@163.com)
* @version 1.0
* @website https://www.shengdingbox.com
* @website https://www.zhouzifei.com
* @date 2019年7月16日
* @since 1.0
*/
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/zhouzifei/tool/consts/PlatformEnum.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

/**
*
* @author Dabao (17611555590@163.com)
* @author Dabao (17600004572@163.com)
* @version 1.0
* @website https://www.shengdingbox.com
* @website https://www.zhouzifei.com
* @date 2019年7月16日
* @since 1.0
*/
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/zhouzifei/tool/consts/ResponseStatus.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

/**
*
* @author Dabao (17611555590@163.com)
* @author Dabao (17600004572@163.com)
* @version 1.0
* @website https://www.shengdingbox.com
* @website https://www.zhouzifei.com
* @date 2019年7月16日
* @since 1.0
*/
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/zhouzifei/tool/consts/SessionConst.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

/**
* session工具类
* @author Dabao (17611555590@163.com)
* @author Dabao (17600004572@163.com)
* @version 1.0
* @website https://www.shengdingbox.com
* @website https://www.zhouzifei.com
* @date 2019年7月16日
* @since 1.0
*/
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/zhouzifei/tool/dto/AbstractBO.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

/**
*
* @author Dabao (17611555590@163.com)
* @author Dabao (17600004572@163.com)
* @version 1.0
* @website https://www.shengdingbox.com
* @website https://www.zhouzifei.com
* @date 2019年7月16日
* @since 1.0
*/
Expand Down
Loading

0 comments on commit 311595b

Please sign in to comment.