日志报错:“Couldn’t find a destroy method named ‘close’ on bean with name ‘dataSourceFund’”
同时控制台报错:“ java.lang.StackOverflowError”
<bean id="dataSourceFund" class="org.springframework.jdbc.datasource.DriverManagerDataSource"
destroy-method="close">
<property name="driverClassName" value="${jdbc.driver}" />
<property name="url" value="${jdbc.fund.url}" />
<property name="username" value="${jdbc.username}" />
<property name="password" value="${jdbc.password}" />
</bean>
改成(去掉destroy-method=“close”)
<bean id="dataSourceFund" class="org.springframework.jdbc.datasource.DriverManagerDataSource"
destroy-method="close">
<property name="driverClassName" value="${jdbc.driver}" />
<property name="url" value="${jdbc.fund.url}" />
<property name="username" value="${jdbc.username}" />
<property name="password" value="${jdbc.password}" />
</bean>