在整合spring和ibatis时出现这样的错误:
The type org.springframework.dao.support.DaoSupport cannot be resolved. It is indirectly referenced
一些包未导入:
调查后发现少加入了一些jar包 (DapSupport依赖于其他的类,必须完全导入才行)
添加了[org.springframework.transaction-3.1.1.RELEASE.jar]之后编译无错通过
如果还有错,就要看是否还有其他的jar包没有被导入
* action中定义的方法类是接口,在spring中注入的却是接口的实现类
* 除过实体bean类,其他类一般都要在spring中注册。
spring创建bean失败,造成的原因为:java.lang.NoClassDefFoundError: org/springframework/jdbc/support/JdbcAccessor