没有合适的资源?快使用搜索试试~ 我知道了~
springboot实现文件上传步骤解析
3星 · 超过75%的资源 16 下载量 150 浏览量
2020-08-25
06:03:56
上传
评论
收藏 60KB PDF 举报
温馨提示
试读
5页
主要介绍了springboot实现文件上传步骤解析,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友可以参考下
资源推荐
资源详情
资源评论
springboot实现文件上传步骤解析实现文件上传步骤解析
主要介绍了springboot实现文件上传步骤解析,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有
一定的参考学习价值,需要的朋友可以参考下
这篇文章主要介绍了springboot实现文件上传步骤解析,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的
参考学习价值,需要的朋友可以参考下
第一步编写上传的前段页面第一步编写上传的前段页面
<div>
<button type="button" class="btn btn-primary" ng-click="openAddModal()" data-toggle="modal"
data-target="#documentOprModal" style="margin-left: 10px;float:left">
单个文件上传
</button>
</div>
<!-- 点击单个文件上传弹出的模态框 -->
<div class="modal fade" id="documentOprModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
data-backdrop="static" data-keyboard="false">
<div class="modal-dialog modal-lg" role="document" style="width: 600px;">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel"> 文档入库</h4>
</div>
<div class="modal-body">
<!--开发-->
<form name="docForm" id="docForm">
<div class="form-group">
<label for="jhText">井号:</label>
<input type="text" class="form-control" id="jhText" ng-model="document.jh">
</div>
<!-- 作者 -->
<div class="form-group">
<label for="authorText">作者:</label>
<input type="text" class="form-control" id="authorText" ng-model="document.author">
</div>
<!-- 单位 -->
<div class="form-group">
<label for="unitText">单位:</label>
<input type="text" class="form-control" id="unitText" ng-model="document.unit">
</div>
<!-- 日期 -->
<div class="form-group">
<label for="writeDate">写作日期:</label>
<input type="date" class="form-control" id="writeDate" ng-model="document.writeDate">
</div>
<!-- 简介 -->
<div class="form-group">
<label for="introductionTextArea">简介:</label>
<textarea class="form-control" id="introductionTextArea" ng-model="document.introduction"
rows="5" cols="60"></textarea>
</div>
<!-- 可能的查询关键字 -->
<div class="form-group">
<label for="keyPackageTextArea">可能的查询关键字:</label>
<textarea class="form-control" id="keyPackageTextArea" ng-model="document.keyPackage" rows="5"
cols="60"></textarea>
</div>
<!-- 文件 -->
<div class="form-group">
<div id="inputContent">
<input id="importFile" type="file" name="file" class="file-loading">
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" ng-click="submitFileInfo()">
<i class="fa fa-check"></i>保存
</button>
<button type="button" class="btn btn-default" data-dismiss="modal" style="margin: 0px 20px;">
<i class="fa fa-ban"></i>取消
</button>
</div>
</div>
资源评论
- 自律的桃子2020-12-02有下载的吗?根据服务器存放的地址下载
weixin_38611877
- 粉丝: 4
- 资源: 925
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功