哦,查了一下Oracle的文档,原来是Oracle不支持: -------------------------------------------------------------------------------- Notes: Oracle JDBC does not support login timeouts. Calling the static DriverManager.setLoginTimeout() method will have no effect. --------------------------------------------------------------------------------只好再想办法,谢谢楼上各位!
--------------------------------------------------------------------------------
Notes:
Oracle JDBC does not support login timeouts. Calling the static DriverManager.setLoginTimeout() method will have no effect. --------------------------------------------------------------------------------只好再想办法,谢谢楼上各位!