spring ORA-00942: 表或视图不存在

<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"
		destroy-method="close">
		<!-- 
			<property name="driverClassName" value="jstels.jdbc.mdb.MDBDriver2" />
			<property name="url" value="jdbc:jstels:mdb:classpath://ds.mdb" />
		 -->
		<property name="driverClassName" value="oracle.jdbc.driver.OracleDriver" />
		<property name="username" value="MQS" />
		<property name="password" value="MQS" />
		<property name="url" value="jdbc:oracle:thin:@127.0.0.1:1521:orcl" />
		<property name="maxActive" value="100" />
		<property name="maxIdle" value="30" />
		<property name="maxWait" value="1000" />
		<property name="defaultAutoCommit" value="false" />
		<property name="validationQuery" value="select count(0) from test" />
	</bean>
经常spring 执行sql的时候报ORA-00942: 表或视图不存在
很有可能是
<property name="validationQuery" value="select count(0) from test" />
表名称test写错了

你可能感兴趣的:(spring,oracle,bean,jdbc,url,Class)