03 2018 档案

摘要:Servlet 2.3 deployment descriptor 注:web.xml中提示错误The content of element type "web-app" must match 该错误的原因是元素排放顺序有误,解决其实也很简单,按照上面的描述将各元素排序即可 Servlet 2.4 阅读全文
posted @ 2018-03-29 18:56 BrokenColor 阅读(1100) 评论(1) 推荐(1)
摘要:以下方法的根本原理就是: 借助第三个变量 c = a; a = b; b = c; 运算符-不借助第三变量: a = a+b; b = a-b; a = a-b; 为运算符-不借助第三个变量: (此种方法运用这种原理:一个数对另一个数位异或两次,该数不变)a = a^b; b = a^b; a = 阅读全文
posted @ 2018-03-27 16:10 BrokenColor 阅读(5578) 评论(1) 推荐(1)
摘要:1、Java 通过HttpURLConnection Post方式提交json,并从服务端返回json数据 注:如果你的代码报错:java.io.IOException: Server returned HTTP response code: 403 for URL https://...... 访 阅读全文
posted @ 2018-03-15 19:19 BrokenColor 阅读(9696) 评论(2) 推荐(1)