代码改变世界

阅读排行榜

Java读取resource文件/路径的几种方式

2018-11-27 14:35 by 鸣仁, 1641 阅读, 收藏,
摘要: 方式一: String fileName = this.getClass().getClassLoader().getResource("文件名").getPath();//获取文件路径String fileUtl = this.getClass().getResource("文件名").getFi 阅读全文

mac Robotframework执行时报错Robot Framework installation not found.

2019-03-05 16:51 by 鸣仁, 1482 阅读, 收藏,
摘要: 虽然已经装了,但一直报错 ,版本是3.1.1 最新版 ➜ ~ pip install robotframework DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade 阅读全文

JAVA读取PROPERTIES配置文件

2017-10-11 20:52 by 鸣仁, 1464 阅读, 收藏,
摘要: 项目经常用到json,xml,properties,文本文件等,作为配置文件。用来存储连接字符串或其他配置参数等。 本文记录properties。 properties文件,存储格式 键=值。例如新建一个 config.properties文件: 1 2 3 4 5 6 7 8 ####这里是con 阅读全文

HttpwebRequest - 带ViewState的网页POST请求

2017-10-30 19:29 by 鸣仁, 1404 阅读, 收藏,
摘要: 这是我今天下午碰到的案例,一个退订页面的post请求,请求头信息都很明确,but看看下面这个请求体,除了最后一个key是我的页面控件名称,其他的几个ViewState相关都是what呢?(ViewState原理参考http://www.cnblogs.com/wwan/archive/2010/11 阅读全文

SecureCRT 添加Mac Localhost

2018-02-02 13:37 by 鸣仁, 1397 阅读, 收藏,
摘要: 1.启动sshd服务: 停止sshd服务的方法: 2.查看是否启动: 下面的输出表示成功启动了:--------------- 0 com.openssh.sshd 3. 连接mac电脑 ssh localhost 或者 ssh name@127.0.0.1 -p22 (22是ssh的默认端口) 4 阅读全文
上一页 1 2 3 4 5 6 7 8 9 10 ··· 25 下一页