摘要: 两种方式:一种继承Thread类实现;一种通过实现Callable接口。第一种方法:因为实现Thread类的run方法自身是没有返回值的,所以不能直接获得线程的执行结果,但是可以通过在run方法里把最后的结果传递给实例变量,然后通过getXX方法获取该实例变量的值。继承实现的代码:class Run... 阅读全文
posted @ 2014-05-18 11:48 cphmvp 阅读(2006) 评论(0) 推荐(0) 编辑
摘要: 错误:Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds错误提示就是我们限定了部署的时间导致的错误。修改 workspace\.metadata\.plugins\org.eclipse.wst.s... 阅读全文
posted @ 2014-05-18 09:31 cphmvp 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 报错信息如下:信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.pa... 阅读全文
posted @ 2014-05-18 00:44 cphmvp 阅读(193) 评论(0) 推荐(0) 编辑
爬虫在线测试小工具: http://tool.haoshuju.cn/