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
1.自定义异常 public class CreateFailedException extends RuntimeException{ public CreateFailedException(String errMsg) { super(errMsg); } /** * Construct a ...
分类:
其他好文 时间:
2021-06-02 19:45:45
阅读次数:
0
默认nginx不开启缓存 open_file_cache off; nginx可以缓存以下三种信息: (1) 文件元数据:文件的描述符、文件大小和最近一次的修改时间 (2) 打开的目录结构 (3) 没有找到的或者没有权限访问的文件的相关信息max=N:可缓存的缓存项上限;达到上限后会使用LRU算法实 ...
分类:
其他好文 时间:
2021-06-02 19:44:50
阅读次数:
0
如何优雅地使用 Stack Overflow? stackoverflow网址 1、首先使用英文搜索,不会直接翻译 eg: 2、其次掌握搜索方法,格式如下: 语言 过程 问题 使用XX语言,在XXX的时候,遇到了XX问题 eg: ...
分类:
其他好文 时间:
2021-06-02 19:37:06
阅读次数:
0
编写一个函数来查找字符串数组中的最长公共前缀: 输入 : ["abca","abc","abca","abc","abcc"] 返回: "abc" /** * * @param strs string字符串一维数组 * @return string字符串 */ function longestCom ...
分类:
Web程序 时间:
2021-06-02 19:25:54
阅读次数:
0
网上的很多代码都是错的 正确的代码 using ll = long long int; ll is_mul_overflow(ll a,ll b) { if (a == -1) return (b == INT64_MIN); if (b == -1) return (a == INT64_MIN) ...
分类:
其他好文 时间:
2021-06-02 19:24:09
阅读次数:
0
原文:数据结构如何一天速成? 常用的数据结构有:数组,栈,链表,队列,树,图,堆,散列表等, 1、数组 数组是可以再内存中连续存储多个元素的结构,在内存中的分配也是连续的,数组中的元素通过数组下标进行访问,数组下标从0开始。例如下面这段代码就是将数组的第一个元素赋值为 1。 int[] data = ...
分类:
其他好文 时间:
2021-06-02 19:23:42
阅读次数:
0
溢出属性 p { height: 100px; width: 50px; border: 3px solid red; /*overflow: visible; !*默认就是可见 溢出还是展示*!*/ /*overflow: hidden; !*溢出部分直接隐藏*!*/ /*overflow: sc ...
分类:
Web程序 时间:
2021-06-02 19:21:22
阅读次数:
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
首先添加相关依赖: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan ...
分类:
数据库 时间:
2021-06-02 18:25:26
阅读次数:
0