import com.alibaba.fastjson.support.spring.GenericFastJsonRedisSerializer; import org.springframework.cache.CacheManager; import org.springframework.c ...
分类:
其他好文 时间:
2021-06-02 20:05:07
阅读次数:
0
spring: #thymeleaf thymeleaf: cache: false prefix: classpath:/templates/ check-template-location: true suffix: .html encoding: utf-8 mode: HTML #这个是关键 ...
分类:
编程语言 时间:
2021-06-02 19:47:35
阅读次数:
0
默认nginx不开启缓存 open_file_cache off; nginx可以缓存以下三种信息: (1) 文件元数据:文件的描述符、文件大小和最近一次的修改时间 (2) 打开的目录结构 (3) 没有找到的或者没有权限访问的文件的相关信息max=N:可缓存的缓存项上限;达到上限后会使用LRU算法实 ...
分类:
其他好文 时间:
2021-06-02 19:44:50
阅读次数:
0
原文:数据结构如何一天速成? 常用的数据结构有:数组,栈,链表,队列,树,图,堆,散列表等, 1、数组 数组是可以再内存中连续存储多个元素的结构,在内存中的分配也是连续的,数组中的元素通过数组下标进行访问,数组下标从0开始。例如下面这段代码就是将数组的第一个元素赋值为 1。 int[] data = ...
分类:
其他好文 时间:
2021-06-02 19:23:42
阅读次数:
0
https://blog.csdn.net/notacoder/article/details/102680465 https://blog.csdn.net/weixin_46233323/article/details/104871075 sudo rm /var/lib/apt/lists/l ...
分类:
系统相关 时间:
2021-06-02 19:09:24
阅读次数:
0
1. K8S集群Control Plane版本升级,不包括etcd、coreDNS 参考文档 https://v1-20.docs.kubernetes.io/zh/docs/tasks/administer-cluster/safely-drain-node/ https://v1-20.docs ...
分类:
其他好文 时间:
2021-06-02 18:24:52
阅读次数:
0
删除 指针p 指向的 结点b ① p->prior->next = p->next; ② p->next->prior = p->prior; ③ free(p); 代码部分: void ListDelete_DuL(DuLink &L, int i, ElemType &e){ // 删除带头结点 ...
分类:
其他好文 时间:
2021-06-02 16:42:32
阅读次数:
0
1. 什么是 AOF 日志? 2. 三种写回策略 1. 什么是 AOF 日志? 试想一下,如果 Redis 每执行一条写操作命令,就把该命令以追加的方式写入到一个文件里,然后重启 Redis 的时候,先去读取这个文件里的命令,并且执行它,这不就相当于恢复了缓存数据了吗? 这种保存写操作命令到日志的持 ...
分类:
其他好文 时间:
2021-06-02 16:21:07
阅读次数:
0
1.ip public class TestInetAddress { public static void main(String[] args) { try { //查询本机IP,可以new InetAddress byName = InetAddress.getByName("localhos ...
分类:
Web程序 时间:
2021-06-02 15:28:12
阅读次数:
0
相同点 😃 new/delete 和 malloc/free 都可以动态分配内存和释放内存 delete 和 free 都不能重复释放内存 delete 和 free 都可以释放空指针 不同点 1、new/delete 是C++的运算符,编译时需要加参数,malloc/free 是C语言中的函数, ...
分类:
其他好文 时间:
2021-06-02 15:04:08
阅读次数:
0