载入静态资源

public static final DefaultRedisScript<Long> SECKILL_SCRIPT;
static {
    SECKILL_SCRIPT= new DefaultRedisScript<>();
    SECKILL_SCRIPT.setLocation(new ClassPathResource("seckill.lua"));
    SECKILL_SCRIPT.setResultType(Long.class);
}

 

posted on 2023-03-08 17:18  hztech  阅读(13)  评论(0编辑  收藏  举报

导航