今天測試使用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錯誤就消失了