1. 程式人生 > >Spring 使用JdbcTeplate的時候出錯Class 'org.springframework.jdbc.core.JdbcTemplate' not found

Spring 使用JdbcTeplate的時候出錯Class 'org.springframework.jdbc.core.JdbcTemplate' not found

Spring 使用JdbcTeplate的時候出錯Class 'org.springframework.jdbc.core.JdbcTemplate' not found


原因:

缺jar包spring-jdbc-4.0.0.jar


解決方案:


匯入jar包,然後重新這一行程式碼

<bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate"></bean>