摘要: 一、读取文件内容(1)word/// ///读取doc、docx /// ///文件路径 ///字符串 protectedstring contentdoc(string filepath) { Microsoft.Office.Interop.Word.Applicationapp = new ... 阅读全文
posted @ 2014-02-17 09:42 弦断有谁听 阅读(1739) 评论(0) 推荐(0) 编辑
摘要: 1、使用的swagger 版本 2、swagger配置 3、关键一点swagger注解的使用 4、最后也很重要,一定要开启增强功能,然后刷新页面就可以了 5、不想接口在页面上显示可以使用注解 阅读全文
posted @ 2019-11-27 16:27 弦断有谁听 阅读(19531) 评论(1) 推荐(3) 编辑
摘要: 其中sha256对应的C#加密方法如下 阅读全文
posted @ 2018-01-12 17:53 弦断有谁听 阅读(8135) 评论(0) 推荐(0) 编辑
摘要: 步骤: 1.本机安装了python3.5(本来安装了最新版本3.6,但是cx_Oracle不支持,只支持3.5,就换了版本) 2、打开网站 http://flask.pocoo.org/docs/0.12/installation/, (1)首先下载get-pip.py文件,并双击运行安装pip命令 阅读全文
posted @ 2018-01-12 17:39 弦断有谁听 阅读(344) 评论(0) 推荐(0) 编辑
摘要: (3)使用fetch实现登录功能,要先在项目中安装fetch(yarn add whatwg-fetch) (4)实现效果 阅读全文
posted @ 2017-11-15 17:14 弦断有谁听 阅读(4878) 评论(0) 推荐(0) 编辑
摘要: master.jsp内容如下: <div id="divtabs" class="easyui-tabs" style="height:auto"> <div title="信息列表"></div> </div> 我要动态更新master.jsp信息列表的内容,更新方法如下, var tab = $ 阅读全文
posted @ 2016-09-02 10:01 弦断有谁听 阅读(1060) 评论(0) 推荐(0) 编辑
摘要: 一.前提:虚拟机和主机互ping,可以ping通 二安装samba (1)rpm -qa | grep samba 查询是否安装程序。默认情况下,虚拟机安装了部分samba . (2)卸载已经安装的部分samba rpm -e xxx -f --nodeps; xxx是你刚刚查到的samba名称,查 阅读全文
posted @ 2016-05-25 19:47 弦断有谁听 阅读(3082) 评论(0) 推荐(0) 编辑
摘要: 上网搜都是通过FileStream fs=new FileStream();获得文件md5. 看了下md5.ComputeHash()方法中的参数,原来有个Stream类型的,那就很简单了。 1.HttpPostedFileBase file = Request.Files["file"];//获... 阅读全文
posted @ 2015-06-08 15:44 弦断有谁听 阅读(916) 评论(1) 推荐(0) 编辑
摘要: 导出:protected void btnDC_Click(object sender, EventArgs e) { Response.Clear(); HttpContext.Current.Response.Charset = "gb2312"; ... 阅读全文
posted @ 2014-12-09 10:24 弦断有谁听 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 1.要求:复制表T_User中的一条Id='1'的所有数据(1)前提:表中没有主键语句:insert into T_User select * from T_User where Id='1'或insert into T_User(Id,Name,Sex) select from Id,Name,S... 阅读全文
posted @ 2014-08-22 17:20 弦断有谁听 阅读(215) 评论(0) 推荐(0) 编辑
摘要: (一)HTTP 错误 403.14 - Forbidden Web 服务器被配置为不列出此目录的内容。 解决办法:(1) <!--[if gte vml 1]><v:shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:pref 阅读全文
posted @ 2014-03-10 10:45 弦断有谁听 阅读(441) 评论(0) 推荐(0) 编辑