使用DBUnit测试时违反外键约束的解决办法
public static Connection getConnection() throws SQLException {Connection con = null;con = DriverManager.getConnection("jdbc:mysql://localhost:3306/sharing?sessionVariables=foreign_key_checks=0", "root", "yingjun");return con;}
?
?
?
?