上一页 1 2 3 4 5 6 7 8 ··· 15 下一页
摘要: 引子: 解决缓存击穿问题 synchronized (this){代码块} public synchronized Map<String,List<Catelog2Vo>> getCatalog]sonFromDb() :SpringBoot所有的组件在容器中都是单例的。 优点:速度快 所以这样只能 阅读全文
posted @ 2022-07-07 23:32 磕伴 阅读(310) 评论(0) 推荐(0)
摘要: 本地缓存 最简单的cache, 做一个map就行 private final Map<String,List<User>> cache=new HashMap<>(); @Override public List<User> queryUserList() { List<User> userlist 阅读全文
posted @ 2022-07-07 21:12 磕伴 阅读(177) 评论(0) 推荐(0)
摘要: SpringCache 属于Spring 缓存管理器(定义规则) 创建出 不同的缓存组件(CRUD缓存)[人为的分组件,其实都存在一起] 官网地址 视频简介 ctrl+n 查找CacheManager 接口 ctrl+h 查看他有几个实现类 1.引入依赖 <dependency> <groupId> 阅读全文
posted @ 2022-07-07 19:00 磕伴 阅读(92) 评论(0) 推荐(0)
摘要: restful风格 @RequestMapping("/getTeacherPage/{current}/{limit}") public List<WorkOrder> getPage(@PathVariable Long current, @PathVariable Long limit) 接收 阅读全文
posted @ 2022-07-01 16:58 磕伴 阅读(335) 评论(0) 推荐(0)
摘要: 默认ID自增 mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl 此时的依赖 <dependency> <groupId>com.baomidou</groupId> <artifactId> 阅读全文
posted @ 2022-07-01 16:14 磕伴 阅读(469) 评论(0) 推荐(0)
摘要: 导入依赖 <dependency> <groupId>com.microsoft.sqlserver</groupId> <artifactId>mssql-jdbc</artifactId> <version>8.2.2.jre8</version> </dependency> JAVA连接sql 阅读全文
posted @ 2022-06-25 14:50 磕伴 阅读(449) 评论(0) 推荐(0)
摘要: 导包 <!-- https://mvnrepository.com/artifact/com.alibaba/easyexcel --> <dependency> <groupId>com.alibaba</groupId> <artifactId>easyexcel</artifactId> <v 阅读全文
posted @ 2022-05-24 11:49 磕伴 阅读(46) 评论(0) 推荐(0)
摘要: 缓存穿透(缓存查不到,数据库累) 缓存穿透的概念很简单,用户想要查询一个数据,发现redis内存数据库没有,也就是缓存没有命中,于 是向持久层数据库查询。发现也没有,于是本次查询失败。当用户很多的时候,缓存都没有命中,于是 都去请求了持久层数据库。这会给持久层数据库造成很大的压力,这时候就相当于出现 阅读全文
posted @ 2022-05-08 16:18 磕伴 阅读(29) 评论(0) 推荐(0)
摘要: 1. # units are case insensitive so 1GB 1Gb 1gB are all the same. 大小写不敏感 2. # include .\path\to\local.conf # include c:\path\to\other.conf 包含其他的设置文件 3. 阅读全文
posted @ 2022-05-08 16:01 磕伴 阅读(41) 评论(0) 推荐(0)
摘要: 工具: U盘 + rufus(使用烧录进linux镜像) linux镜像 1.windows 管理-压缩卷出一块空闲的磁盘空间(不要使用) 重启电脑 启动项 U盘启动 linux就自动安装,选择安装到空闲的磁盘空间就行 具体的linux系统配置百度B站都可查 阅读全文
posted @ 2022-05-08 09:57 磕伴 阅读(118) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 15 下一页