
springboot
文章平均质量分 62
qq_20009015
欢迎关注我的公众号《程序员与王子喵》
展开
-
springboot的websoket
https://www.cnblogs.com/bianzy/p/5822426.html首先 在pom.xml中添加依赖<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-websocket</artifa...原创 2018-06-12 10:01:42 · 371 阅读 · 0 评论 -
springboot中redis的使用
先引入redis的依赖开启注解@Cacheable(cacheNames = "product", key = "#currPage") //#指定参数作为key 不填默认所有//将结果缓存到redis中 缓存区名叫product key是缓存的键 //如果不设置key 则默认是以方法的参数为key 在这里是以页数和session 以及model 由于session...原创 2018-06-12 10:04:30 · 872 阅读 · 0 评论