摘要: 目标是每隔5分钟执行一次数据库查询。1、数据库查询,使用的是JDBC,代码如下:import org.junit.Test;import java.sql.*;public class JDBCTest { // 数据库驱动程序 private final static String D... 阅读全文
posted @ 2014-04-18 09:50 newyear821 阅读(1036) 评论(0) 推荐(0) 编辑
摘要: junit进行单元测试的时候,报错如下:method initializationerror not found。junit.jar已经引入了。解决方法,下载hamcrest.jar即可。二者关系可参见:http://blog.csdn.net/hanpompy/article/details/76... 阅读全文
posted @ 2014-04-18 09:09 newyear821 阅读(764) 评论(0) 推荐(0) 编辑