03 2023 档案
摘要:GridFS是MongoDB提供的用于持久化存储文件的模块 其中fs.chunks中放块文件 代码示例 @Autowired GridFsTemplate gridFsTemplate; //将一个模板文件存到GridFS中 @Test public void GridFsTemplate() th
阅读全文
摘要:两种方法 一、<#if></if> 判断是否为空 例子: FTL文件代码 <#-- 空值处理 判断某值为空用 ?? 存在变量返回true --> <#if stus ??> <#list stus as stu > <tr> <td>${stu_index + 1}</td> <td>${stu.n
阅读全文