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

今天测试使用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_第1张图片

最开始以为是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_第2张图片

 

 

你可能感兴趣的:(java,Eclipse,Multiple,markers,at,this,line)