├── .gitignore ├── LICENSE ├── README.md ├── images ├── Feed流实现方案.png ├── Redisson分布式锁原理.png ├── Redisson可重入锁原理.png ├── Redis消息队列实现异步秒杀.png ├── feed流滚动查询参数.png ├── redis分布式锁总结.png ├── 互斥锁案例流程图.png ├── 优惠券秒杀业务优化流程.png ├── 全局自增器概念.png ├── 分布式锁.png ├── 分布式锁的实现对比.png ├── 功能介绍.png ├── 基于redis实现分布式锁.png ├── 店铺增加缓存.png ├── 店铺类型添加缓存.png ├── 拦截器优化.png ├── 改造为redis存储信息.png ├── 秒杀优惠券流程图.png ├── 缓存击穿.png ├── 缓存击穿解决方案.png ├── 逻辑过期方式解决缓存击穿.png ├── 项目简介.png └── 项目结构.png ├── jmx └── 缓存击穿.jmx ├── pom.xml └── src ├── main ├── java │ └── com │ │ └── hmdp │ │ ├── HmDianPingApplication.java │ │ ├── config │ │ ├── MvcConfig.java │ │ ├── MybatisConfig.java │ │ ├── RedissonConfig.java │ │ └── WebExceptionAdvice.java │ │ ├── controller │ │ ├── BlogCommentsController.java │ │ ├── BlogController.java │ │ ├── FollowController.java │ │ ├── ShopController.java │ │ ├── ShopTypeController.java │ │ ├── UploadController.java │ │ ├── UserController.java │ │ ├── VoucherController.java │ │ └── VoucherOrderController.java │ │ ├── dto │ │ ├── LoginFormDTO.java │ │ ├── Result.java │ │ ├── ScrollResult.java │ │ └── UserDTO.java │ │ ├── entity │ │ ├── Blog.java │ │ ├── BlogComments.java │ │ ├── Follow.java │ │ ├── SeckillVoucher.java │ │ ├── Shop.java │ │ ├── ShopType.java │ │ ├── User.java │ │ ├── UserInfo.java │ │ ├── Voucher.java │ │ └── VoucherOrder.java │ │ ├── mapper │ │ ├── BlogCommentsMapper.java │ │ ├── BlogMapper.java │ │ ├── FollowMapper.java │ │ ├── SeckillVoucherMapper.java │ │ ├── ShopMapper.java │ │ ├── ShopTypeMapper.java │ │ ├── UserInfoMapper.java │ │ ├── UserMapper.java │ │ ├── VoucherMapper.java │ │ └── VoucherOrderMapper.java │ │ ├── service │ │ ├── IBlogCommentsService.java │ │ ├── IBlogService.java │ │ ├── IBlogService2.java │ │ ├── IFollowService.java │ │ ├── ISeckillVoucherService.java │ │ ├── IShopService.java │ │ ├── IShopTypeService.java │ │ ├── IUserInfoService.java │ │ ├── IUserService.java │ │ ├── IVoucherOrderService.java │ │ ├── IVoucherService.java │ │ └── impl │ │ │ ├── BlogCommentsServiceImpl.java │ │ │ ├── BlogServiceImpl.java │ │ │ ├── BlogServiceImpl2.java │ │ │ ├── FollowServiceImpl.java │ │ │ ├── SeckillVoucherServiceImpl.java │ │ │ ├── ShopServiceImpl.java │ │ │ ├── ShopTypeServiceImpl.java │ │ │ ├── UserInfoServiceImpl.java │ │ │ ├── UserServiceImpl.java │ │ │ ├── VoucherOrderServiceImpl.java │ │ │ └── VoucherServiceImpl.java │ │ └── utils │ │ ├── CacheClient.java │ │ ├── CacheClient2.java │ │ ├── ILock.java │ │ ├── LoginInterceptor.java │ │ ├── PasswordEncoder.java │ │ ├── RedisConstants.java │ │ ├── RedisData.java │ │ ├── RedisIdWorker.java │ │ ├── RedisIdWorker2.java │ │ ├── RefreshTokenInterceptor.java │ │ ├── RegexPatterns.java │ │ ├── RegexUtils.java │ │ ├── SimpleRedisLock.java │ │ ├── SimpleRedisLock2.java │ │ ├── SystemConstants.java │ │ └── UserHolder.java └── resources │ ├── application.yaml │ ├── db │ └── hmdp.sql │ ├── mapper │ └── VoucherMapper.xml │ ├── seckill.lua │ ├── seckill2.lua │ ├── token.txt │ ├── unlock.lua │ └── unlock2.lua └── test └── java └── com └── hmdp ├── HmDianPingApplicationTests.java ├── NormalTest.java ├── RedisPreheat.java └── RedissonTest.java /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/README.md -------------------------------------------------------------------------------- /images/Feed流实现方案.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/images/Feed流实现方案.png -------------------------------------------------------------------------------- /images/Redisson分布式锁原理.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/images/Redisson分布式锁原理.png -------------------------------------------------------------------------------- /images/Redisson可重入锁原理.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/images/Redisson可重入锁原理.png -------------------------------------------------------------------------------- /images/Redis消息队列实现异步秒杀.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/images/Redis消息队列实现异步秒杀.png -------------------------------------------------------------------------------- /images/feed流滚动查询参数.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/images/feed流滚动查询参数.png -------------------------------------------------------------------------------- /images/redis分布式锁总结.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/images/redis分布式锁总结.png -------------------------------------------------------------------------------- /images/互斥锁案例流程图.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/images/互斥锁案例流程图.png -------------------------------------------------------------------------------- /images/优惠券秒杀业务优化流程.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/images/优惠券秒杀业务优化流程.png -------------------------------------------------------------------------------- /images/全局自增器概念.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/images/全局自增器概念.png -------------------------------------------------------------------------------- /images/分布式锁.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/images/分布式锁.png -------------------------------------------------------------------------------- /images/分布式锁的实现对比.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/images/分布式锁的实现对比.png -------------------------------------------------------------------------------- /images/功能介绍.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/images/功能介绍.png -------------------------------------------------------------------------------- /images/基于redis实现分布式锁.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/images/基于redis实现分布式锁.png -------------------------------------------------------------------------------- /images/店铺增加缓存.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/images/店铺增加缓存.png -------------------------------------------------------------------------------- /images/店铺类型添加缓存.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/images/店铺类型添加缓存.png -------------------------------------------------------------------------------- /images/拦截器优化.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/images/拦截器优化.png -------------------------------------------------------------------------------- /images/改造为redis存储信息.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/images/改造为redis存储信息.png -------------------------------------------------------------------------------- /images/秒杀优惠券流程图.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/images/秒杀优惠券流程图.png -------------------------------------------------------------------------------- /images/缓存击穿.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/images/缓存击穿.png -------------------------------------------------------------------------------- /images/缓存击穿解决方案.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/images/缓存击穿解决方案.png -------------------------------------------------------------------------------- /images/逻辑过期方式解决缓存击穿.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/images/逻辑过期方式解决缓存击穿.png -------------------------------------------------------------------------------- /images/项目简介.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/images/项目简介.png -------------------------------------------------------------------------------- /images/项目结构.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/images/项目结构.png -------------------------------------------------------------------------------- /jmx/缓存击穿.jmx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/jmx/缓存击穿.jmx -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/pom.xml -------------------------------------------------------------------------------- /src/main/java/com/hmdp/HmDianPingApplication.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/HmDianPingApplication.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/config/MvcConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/config/MvcConfig.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/config/MybatisConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/config/MybatisConfig.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/config/RedissonConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/config/RedissonConfig.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/config/WebExceptionAdvice.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/config/WebExceptionAdvice.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/controller/BlogCommentsController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/controller/BlogCommentsController.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/controller/BlogController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/controller/BlogController.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/controller/FollowController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/controller/FollowController.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/controller/ShopController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/controller/ShopController.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/controller/ShopTypeController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/controller/ShopTypeController.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/controller/UploadController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/controller/UploadController.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/controller/UserController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/controller/UserController.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/controller/VoucherController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/controller/VoucherController.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/controller/VoucherOrderController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/controller/VoucherOrderController.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/dto/LoginFormDTO.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/dto/LoginFormDTO.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/dto/Result.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/dto/Result.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/dto/ScrollResult.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/dto/ScrollResult.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/dto/UserDTO.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/dto/UserDTO.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/entity/Blog.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/entity/Blog.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/entity/BlogComments.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/entity/BlogComments.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/entity/Follow.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/entity/Follow.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/entity/SeckillVoucher.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/entity/SeckillVoucher.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/entity/Shop.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/entity/Shop.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/entity/ShopType.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/entity/ShopType.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/entity/User.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/entity/User.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/entity/UserInfo.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/entity/UserInfo.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/entity/Voucher.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/entity/Voucher.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/entity/VoucherOrder.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/entity/VoucherOrder.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/mapper/BlogCommentsMapper.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/mapper/BlogCommentsMapper.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/mapper/BlogMapper.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/mapper/BlogMapper.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/mapper/FollowMapper.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/mapper/FollowMapper.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/mapper/SeckillVoucherMapper.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/mapper/SeckillVoucherMapper.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/mapper/ShopMapper.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/mapper/ShopMapper.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/mapper/ShopTypeMapper.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/mapper/ShopTypeMapper.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/mapper/UserInfoMapper.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/mapper/UserInfoMapper.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/mapper/UserMapper.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/mapper/UserMapper.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/mapper/VoucherMapper.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/mapper/VoucherMapper.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/mapper/VoucherOrderMapper.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/mapper/VoucherOrderMapper.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/service/IBlogCommentsService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/service/IBlogCommentsService.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/service/IBlogService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/service/IBlogService.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/service/IBlogService2.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/service/IBlogService2.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/service/IFollowService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/service/IFollowService.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/service/ISeckillVoucherService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/service/ISeckillVoucherService.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/service/IShopService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/service/IShopService.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/service/IShopTypeService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/service/IShopTypeService.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/service/IUserInfoService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/service/IUserInfoService.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/service/IUserService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/service/IUserService.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/service/IVoucherOrderService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/service/IVoucherOrderService.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/service/IVoucherService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/service/IVoucherService.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/service/impl/BlogCommentsServiceImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/service/impl/BlogCommentsServiceImpl.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/service/impl/BlogServiceImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/service/impl/BlogServiceImpl.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/service/impl/BlogServiceImpl2.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/service/impl/BlogServiceImpl2.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/service/impl/FollowServiceImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/service/impl/FollowServiceImpl.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/service/impl/SeckillVoucherServiceImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/service/impl/SeckillVoucherServiceImpl.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/service/impl/ShopServiceImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/service/impl/ShopServiceImpl.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/service/impl/ShopTypeServiceImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/service/impl/ShopTypeServiceImpl.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/service/impl/UserInfoServiceImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/service/impl/UserInfoServiceImpl.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/service/impl/UserServiceImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/service/impl/UserServiceImpl.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/service/impl/VoucherOrderServiceImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/service/impl/VoucherOrderServiceImpl.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/service/impl/VoucherServiceImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/service/impl/VoucherServiceImpl.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/utils/CacheClient.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/utils/CacheClient.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/utils/CacheClient2.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/utils/CacheClient2.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/utils/ILock.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/utils/ILock.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/utils/LoginInterceptor.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/utils/LoginInterceptor.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/utils/PasswordEncoder.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/utils/PasswordEncoder.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/utils/RedisConstants.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/utils/RedisConstants.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/utils/RedisData.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/utils/RedisData.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/utils/RedisIdWorker.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/utils/RedisIdWorker.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/utils/RedisIdWorker2.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/utils/RedisIdWorker2.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/utils/RefreshTokenInterceptor.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/utils/RefreshTokenInterceptor.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/utils/RegexPatterns.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/utils/RegexPatterns.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/utils/RegexUtils.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/utils/RegexUtils.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/utils/SimpleRedisLock.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/utils/SimpleRedisLock.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/utils/SimpleRedisLock2.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/utils/SimpleRedisLock2.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/utils/SystemConstants.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/utils/SystemConstants.java -------------------------------------------------------------------------------- /src/main/java/com/hmdp/utils/UserHolder.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/java/com/hmdp/utils/UserHolder.java -------------------------------------------------------------------------------- /src/main/resources/application.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/resources/application.yaml -------------------------------------------------------------------------------- /src/main/resources/db/hmdp.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/resources/db/hmdp.sql -------------------------------------------------------------------------------- /src/main/resources/mapper/VoucherMapper.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/resources/mapper/VoucherMapper.xml -------------------------------------------------------------------------------- /src/main/resources/seckill.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/resources/seckill.lua -------------------------------------------------------------------------------- /src/main/resources/seckill2.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/resources/seckill2.lua -------------------------------------------------------------------------------- /src/main/resources/token.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/resources/token.txt -------------------------------------------------------------------------------- /src/main/resources/unlock.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/resources/unlock.lua -------------------------------------------------------------------------------- /src/main/resources/unlock2.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/main/resources/unlock2.lua -------------------------------------------------------------------------------- /src/test/java/com/hmdp/HmDianPingApplicationTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/test/java/com/hmdp/HmDianPingApplicationTests.java -------------------------------------------------------------------------------- /src/test/java/com/hmdp/NormalTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/test/java/com/hmdp/NormalTest.java -------------------------------------------------------------------------------- /src/test/java/com/hmdp/RedisPreheat.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/test/java/com/hmdp/RedisPreheat.java -------------------------------------------------------------------------------- /src/test/java/com/hmdp/RedissonTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AZhangsan/heima-dianping-redis/HEAD/src/test/java/com/hmdp/RedissonTest.java --------------------------------------------------------------------------------