摘要:
java.sql.SQLException: Can't call commit when autocommit=true at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:934) at com.mysql.jdbc.SQLEr... 阅读全文
摘要:
今天碰到一个问题,我的一个工具类提供了几种静态方法,静态方法需要另外一个类的实例提供处理,因此就写出了这样的代码:Class Util{ private static XXX xxx; xxx = BeanUtil.getBean("xxx"); public static void meth... 阅读全文