Cannot create JDBC driver of class ' ' for connect
URL ' '.
Caused by: java.sql.SQLException: No suitable driver
<bean id="tbp.sys.DataSource1"
class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">
<property name="driverClassName">
<value>oracle.jdbc.driver.OracleDriver</value>
</property>
<property name="url">
<value>jdbc:oracle:thin:@192.168.1.162:1521:orcl</value>
</property>
<property name="username">
<value>platform</value>
</property>
<property name="password">
<value>platform</value>
</property>
</bean>
问题出在: <value>jdbc:oracle:thin:@192.168.1.162:1521:orcl</value> 我把他写成了 <value>192.168.1.162:1521:orcl</value>
可能的原因,ojdbc 驱动版本错误,或者是没有ojdbc驱动没有 。