java.lang.ClassCastException: sun.jdbc.odbc.JdbcOdbcStatement cannot be cast to java.beans.Statement

当导入的包为:import java.sql.Statement;时,无任何错误

当导入的包为:import java.beans.Statement;时,出错

原文地址:https://www.cnblogs.com/XDJjy/p/3593443.html