1. 程式人生 > >The type org.springframework...DaoSupport cannot be resolved. It is indirectly..

The type org.springframework...DaoSupport cannot be resolved. It is indirectly..

在整合[hibernate]和[spring]的時候出現以下異常:The hierarchy of the type xxx is inconsistentThe type org.springframework.dao.support.DaoSupport cannot be resolved. It is indirectly referenced from required .class files調查後發現少加入了一些jar包 (DapSupport依賴於其他的類,必須完全匯入才行)添加了[org.springframework.transaction-3.0.5.RELEASE.jar](spring-tx,spring-dao,spring-jdbc)之後編譯無錯通過如果還有錯,就要看是否還有其他的jar包沒有被匯入寫入部落格中防止以後再花時間去研究了