摘要:
public class HelloJavaDB { public static void main(String[] args) { try { // load the driver Class.forName("org.apache.derby.jdbc.EmbeddedDriver").newInstance(); System.out.println("Load the embedded driver"); Connection conn = null; Properties props = new Properties(); ... 阅读全文
posted @ 2013-08-16 16:06
苍云古齿
阅读(191)
评论(0)
推荐(0)
摘要:
使用javaDB的时候报这个错误,具体就是,在shutdown的时候.代码如下 public void shutdown() { logger.debug(" Shutdown database. "); try { if (s != null) { logger.debug(" Close statement"); s.close(); } if (conn != null) { logge... 阅读全文
posted @ 2013-08-16 16:02
苍云古齿
阅读(525)
评论(0)
推荐(0)
摘要:
excel poi中,导出的数据不是很大时,不会有问题,而数据很多或者比较多时,就会报以下的错误,是由于cell styles太多create造成,故一般可以把cellstyle设置放到循环外面报错如下:Caused by: java.lang.IllegalStateException: The maximum number of cell styles was exceeded. You can define up to 4000 styles in a .xls workbookatorg.apache.poi.hssf.usermodel.HSSFWorkbook.createCell 阅读全文
posted @ 2013-08-16 11:04
苍云古齿
阅读(5713)
评论(0)
推荐(0)

浙公网安备 33010602011771号