I m 在static main
内形成我春季的背景 方法
return new ClassPathXmlApplicationContext("applicationContext.xml");
在<条码>中应用 I m 接线
<bean id="dataSource"
class="org.springframework.jdbc.datasource.SingleConnectionDataSource">
<property name="driverClassName">
<value>${db.driverclassname}</value>
</property>
...
</bean>
I ve got a .properties
file on my category path that contained the Value db.driverclassname
.
不幸的是,我犯了以下错误:
Property driverClassName threw exception;
nested exception is java.lang.IllegalStateException:
Could not load JDBC driver class [${db.driverclassname}]
我做了什么错误? I m