jdbc db2连接问题 报这个错误: java.sql.SQLException: No suitable driver found for jdbc:db2://112.5.17.82:8085/MASDB at java.sql.DriverManager.getConnection(DriverManager.java:602) at java.sql.DriverManager.getConnection(DriverManager.java:185) at com.huawei.utils.db.DBPool.getInnerConnection(DBPool.java:793) at com.huawei.utils.db.DBPool.getConnection(DBPool.java:748) at com.huawei.utils.db.DBPool.query(DBPool.java:376) at com.huawei.eie.api.sm.imp.SmOperation.login(SmOperation.java:652) at com.huawei.eie.api.sm.DBSMProxy.login(DBSMProxy.java:257) at com.test.DBSMProxyTest.DBSMProxyTest2(DBSMProxyTest.java:45) at com.test.DBSMProxyTest.main(DBSMProxyTest.java:52) 注:驱动包已加载;url地址正确,用户名,密码正确!不解怎么还报错 求 高手指点!!!
------解决方案-------------------- <!-- db2(106) <property name="connection.url">jdbc:db2://192.168.0.166:50000/TestDB</property> <property name="dialect">org.hibernate.dialect.DB2Dialect</property> <property name="connection.username">all</property> <property name="connection.password">all</property> <property name="connection.driver_class">com.ibm.db2.jcc.DB2Driver</property> -->
------解决方案-------------------- No suitable driver found for jdbc