随笔分类 - springboot
摘要:导包 注入调用 opsForValue() opsForList() redisTemplate 配置 ,为了 对key采用string序列化方式 对value采用json序列化方式 参数的配置 使用Redis做缓存 使用Spring Cache注解 设置过期时间 在service层加上cache注
阅读全文
摘要:创建 三个类 分别实现 Filter ServletContextListener HttpServlet 在springboot 启动类中@bean加入 2 ,实现 ServletContextIntializer接口 3. 注解方式 主类加上@ServletComponentScan 给三个分别
阅读全文

浙公网安备 33010602011771号