[AppleScript] 纯文本查看 复制代码
{
"_id" : ObjectId("5b30b052f58b4411fc6cb1cf"),
"_class" : "com.xuecheng.framework.domain.cms.CmsSite",
"siteName" : "课程详情站点",
"siteDomain" : "http://www.xuecheng.com",
"sitePort" : "80",
"siteWebPath" : "",
"siteCreateTime" : ISODate("2018‐02‐03T02:34:19.113+0000") }
[AppleScript] 纯文本查看 复制代码
//文件存储2 @Test public void testStore2() throws FileNotFoundException { File file = new File("C:\\Users\\admin\\Desktop\\coursedetail_t.html");
FileInputStream inputStream = new FileInputStream(file);
//保存模版文件内容
GridFSFile gridFSFile = gridFsTemplate.store(inputStream, "测试文件","");
String fileId = gridFSFile.getId().toString();
System.out.println(fileId); }