eclise的maven问题:生成class文件时候失败,最后发现 order and export顺序有关系,需要在build path里调整之,把maven dependencies。
tomcat与threadlocal: A web application created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@44676e3f]) and a value of type [test.leak.threadlocal.value.MyCounter] (value [test.leak.threadlocal.value.MyCounter@62770d2e]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
json ojbect写出到页面时出错:org.codehaus.jackson.map.JsonMappingException: No serializer found for class org.json.JSONObject and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS) ) 是使用了org.codehaus.jackson.map.ObjectMapper 去writeValueAsString,直接JSONObject.toString()就可以了 response.setCharacterEncoding("UTF-8"); response.getOutputStream().print(js.toString()+ '\n'); OutputStream写中文到页面出错,改为PrintWriter
posted on
2012-04-07 09:54架构师刀哥
阅读(1117)
评论(0)
编辑收藏举报