随笔分类 -  springboot

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