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

 

最開始以爲是jre版本過高了,改成1.6還是同樣的問題,後來發現是有一個包spring-tx-4.1.5.RELEASE.jar,沒有放到lib裏面,下載粘貼進去,build to path錯誤就消失了

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章