摘要: 通过 @PreDestroy 和 bean 中配置 destroy-method 实现该功能 java 代码中: 1: public class TestClass { 2: private ScheduledExecutorService scheduledExecutorService = Executors.newScheduledThreadP... 阅读全文
posted @ 2013-09-13 18:00 琼' 阅读(1489) 评论(0) 推荐(0) 编辑
摘要: 一个有效的方法:重载 PostMethod 的 getRequestCharSet 方法 1: class PostChinese { 2: HttpClient httpClient = new HttpClient(); 3: PostMethod postMethod = new UTF8PostMethod(... 阅读全文
posted @ 2013-09-13 17:47 琼' 阅读(371) 评论(0) 推荐(0) 编辑