当前位置: 代码迷 >> 综合 >> Spring 使用JdbcTeplate的时候出错Class 'org.springframework.jdbc.core.JdbcTemplate' not found
  详细解决方案

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

热度:29   发布时间:2023-11-19 21:46:25.0

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>

  相关解决方案