2019年12月14日
摘要: 将文章地址搬至CSDN 阅读全文
posted @ 2019-12-14 12:53 技术的深奥 阅读(132) 评论(0) 推荐(0) 编辑
2019年10月31日
摘要: 解决方案: 1、可能是包冲突,删除Java项目下的jsp-api.jar、servlet-api.jar包 2、在Tomcat中的conf下的context文件中加入<Loader delegate="true" /> 阅读全文
posted @ 2019-10-31 10:15 技术的深奥 阅读(2798) 评论(0) 推荐(0) 编辑
2019年7月3日
摘要: File file = new File(this.getClass().getResource("").getPath());System.out.println(file.getPath());String path=file.getPath();String filename="test1.t 阅读全文
posted @ 2019-07-03 16:20 技术的深奥 阅读(1315) 评论(0) 推荐(0) 编辑
摘要: File file = new File(this.getClass().getResource("").getPath());System.out.println(file.getPath());String path=file.getPath();//path=path.substring(0, 阅读全文
posted @ 2019-07-03 16:19 技术的深奥 阅读(348) 评论(0) 推荐(0) 编辑
摘要: String path = request.getServletContext().getRealPath("/upload/Excel");if (file.exists()){ File[] files=file.listFiles(); if (files.length==0){ System 阅读全文
posted @ 2019-07-03 16:18 技术的深奥 阅读(409) 评论(0) 推荐(0) 编辑
摘要: HSSFWorkbook workbook = new HSSFWorkbook();HSSFSheet sheet = workbook.createSheet("综合信息");HSSFRow row = sheet.createRow(0);HSSFCell c0 = row.createCel 阅读全文
posted @ 2019-07-03 16:15 技术的深奥 阅读(252) 评论(0) 推荐(0) 编辑
2018年3月26日
摘要: 1.显示目录/test下所有目录 ls -al /test|egrep ^d 2.把目录test下所有文件打包成a.gz除了目录test下的b文件 tar -zcvf a.gz /test --exclude=/test/b 3.给脚本赋予执行的权限 chmod +x ?.sh 4.umask代表什 阅读全文
posted @ 2018-03-26 23:06 技术的深奥 阅读(280) 评论(0) 推荐(0) 编辑
2017年9月19日
摘要: 1、在编译过程中使用了Python关键字 2、Python的int类型中没有len方法 阅读全文
posted @ 2017-09-19 14:22 技术的深奥 阅读(5791) 评论(0) 推荐(0) 编辑
摘要: 1.下载Python 》在百度下搜python软件下载 2.下载完之后解压,复制Python的地址 C:\Python27 3.打开环境变量 计算机右击属性--》高级系统设置--》环境变量 》系统变量找到path的变量值:在最后面加上;PATH=PATH;c:\python27 4.电脑左下角点击 阅读全文
posted @ 2017-09-19 11:36 技术的深奥 阅读(479) 评论(0) 推荐(0) 编辑
摘要: 1、进入Pycharm软件--》点击左上角file 》选择Setting >选择Editor 》选择FileEncoding-->选择编码格式utf-8 2、在某个页面的右下角选择编码格式utf-8 3、在某个页面的内容中的头部加上 #coding=utf-8 4、再次运行页面就不会乱码啦 阅读全文
posted @ 2017-09-19 09:05 技术的深奥 阅读(179) 评论(0) 推荐(0) 编辑