Multiple markers at this line - The type org.springframework.dao.DataAccessException cannot be

时间:2024-04-08 15:08:15

今天测试使用JdbcTemplate,报错,报错内容如下:

Multiple markers at this line

      - The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly referenced from

       required .class files

      - The method update(String) from the type JdbcTemplate refers to the missing type DataAccessException

 

Multiple markers at this line - The type org.springframework.dao.DataAccessException cannot be

最开始以为是jre版本过高了,改成1.6还是同样的问题,后来发现是有一个包spring-tx-4.1.5.RELEASE.jar,没有放到lib里面,下载粘贴进去,build to path错误就消失了

Multiple markers at this line - The type org.springframework.dao.DataAccessException cannot be