java
海的那边不是山
只要开始,就不晚
展开
-
java list转 数组
list转数组List<String> list = new ArrayList<String>();String [] newarr = new String[list.size()];String [] newarr1 = list.toArray(newarr);原创 2021-11-25 10:34:00 · 195 阅读 · 0 评论 -
commons-httpclientget请求 CookieSpec: Invalid cookie state: path not specified
commons-httpclient 模拟http get请求异常日志CookieSpec: Invalid cookie state: path not specified导致cookie不生效解决方案String key = “JESESSIONID”;//cookie的keyString value = “11C05FD970395380B785E538C3FFAC9B”;cookie的值HttpClient client ;Cookie cookie = new Cookie(cl原创 2021-11-23 19:14:22 · 253 阅读 · 0 评论 -
log4j2日志启动报错
后台报错日志 javax.xml.parsers.ParserConfigurationException: Feature 'http://apache.org/xml/features/xinclude' is not recognized. at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown Source) at org.apache.logging.log4j.core.config.x原创 2021-11-23 18:12:11 · 319 阅读 · 0 评论