摘要:
来自 : http://blog.csdn.net/luckyzhoustar/article/details/50402427 /** * @FileName: ByteToObject.java * @Package:com.test * @Description: TODO * @author 阅读全文
摘要:
URL url = getClass().getResource("SaikeScanClient.fxml");System.out.println(url);输出:file:/D:/myProject/saikescan/target/classes/saikeScan/client/Saike 阅读全文
摘要:
下载:codeblocks 只有几十兆。 http://www.codeblocks.org/downloads/26#windows codeblocks-16.01mingw-nosetup.zip 此版本自带了gcc,直接解压运行即可进行开发。 eclipse也可以进行 c、c++开发,但需要 阅读全文
摘要:
@FXMLprivate void savaconfig(ActionEvent event) { try { Properties prop = new Properties(); FileWriter fw = new FileWriter("conf" + File.separator + " 阅读全文
摘要:
new Alert(Alert.AlertType.NONE, "xxx不存在", new ButtonType[]{ButtonType.CLOSE}).show(); 阅读全文
摘要:
Date as = new Date(new Date().getTime()-24*60*60*1000);SimpleDateFormat matter1 = new SimpleDateFormat("yyyyMMdd");String time = matter1.format(as);Sy 阅读全文
摘要:
try { private Properties prop = new Properties(); FileReader fr = new FileReader("conf" + File.separator + "config.properties"); BufferedReader br = n 阅读全文
摘要:
stage.setMaximized(true); 阅读全文
摘要:
测试任意文件读取漏洞是需要在url中加上 ../../ 之类的字符,但是如果使用三方库Apache httpclient或okhttp,他们都会自动删除url中的 ../ ,通过修改okhttp的源码可以防止此删除,具体修改如下 修改 HttpUrl.Builder 类的 push方法,注释如下代码 阅读全文
摘要:
HttpGet httpGet = new HttpGet(url);SSLContext sslcontext = SSLContexts.custom().loadTrustMaterial(new MyTrustStrategy()).build(); RequestConfig reques 阅读全文