SpringBoot依赖
1 | <!-- springboot组件--> |
Since 2017
1 | <!-- springboot组件--> |
1 | <!-- mybatis/spring包 --> |
Bootstrap中文网
Bootstrap-table中文api
Bootstrap-table官网
bootstrap/css/bootstrap.min.css
bootstrap-table/src/bootstrap-table.css
- 行内编辑
文档地址
bootstrap3-editable/css/bootstrap-editable.css引入js
bootstrap/js/bootstrap.min.js
bootstrap-table/src/bootstrap-table.js
bootstrap-table/src/extensions/filter-control/bootstrap-table-filter-control.js
bootstrap-table/src/extensions/toolbar/bootstrap-table-toolbar.jshttps://cdn.bootcss.com/x-editable/1.5.1/bootstrap3-editable/js/bootstrap-editable.min.js
bootstrap-table/src/extensions/editable/bootstrap-table-editable.js- 中文包
bootstrap-table/locale/bootstrap-table-zh-CN.min.js
可在html配置,或者js配置(本文html配置)


1 | <ul id="fileTree" class="ztre" style="background-color:#fff;border:none;margin-top:0;width:100%;height:180px;"></ul> |
引入
css文件ztree/css/metroStyle/metroStyle.css ztree/js/jquery.ztree.core-3.5.js
setting,ztreeapi1 |
|
##安装git
##使用github进行多客户端编辑博客
全局安装hexo、hexo init、npm install 和 npm install hexo-deployer-git(此时当前分支应显示为hexo);##上传文件1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28@RequestMapping("/uploadfile")
@ResponseBody
private message uploadfile(@RequestParam("attachment") MultipartFile[] multipartfiles, HttpServletRequest request) throws IOException {
MultipartHttpServletRequest mulReq = (MultipartHttpServletRequest) request;
/*MultipartFile file = mulReq.getFile("attachment");*/
String savePath = "E:\\ludy\\mdm\\attachment";//本地地址
String filename = "";
message retmsg = new message();//返回对象
try {
if (null != multipartfiles && multipartfiles.length > 0) {
//遍历并保存文件
for (MultipartFile file : multipartfiles) {
String originname = file.getOriginalFilename();
//String [] suffix=originname.split(".");
String prefix = originname.substring(originname.lastIndexOf(".") + 1);
filename = mD5(file);
file.transferTo(new File(savePath + "\\" + filename + "." + prefix));
retmsg.setRet("200");
retmsg.setMsg(filename + "." + prefix);//后缀
}
}
} catch (Exception e) {
e.printStackTrace();
}
return retmsg;
}
##上传文件到服务器(尚有问题,但可行)