Cannot open connection 解決辦法

試了不少種網上找的辦法,都不行,最後才發現是個人beans.xml中徹底把下面 這一段代碼給遺忘了,忘記寫了。添加我就ok了。spring

我能說花了我近1個小時嗎?坑姐哦!spa

<bean
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<value>classpath:jdbc.properties</value>
</property>
</bean>xml

相關文章
相關標籤/搜索