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

在继承SqlSessionDaoSupport出现了两个错误:
The project was not built since its build path is incomplete. Cannot find the class file for org.springframework.dao.support.DaoSupport. Fix the build path then try building this project。

The type org.springframework.dao.support.DaoSupport can not be resolved. It is indirectly referenced from required .class files.
At first thought it was a question of what jre, a variety of tone in the configuration inside, then recompile the error, and they thought it was the repository, and then look at other people's blog was found to be less a jar package
added spring-tx.jar package rely:

<dependency>
     <groupId>org.springframework</groupId>
      <artifactId>spring-tx</artifactId>
      <version>${org.springframework.version}</version>
</dependency>

Guess you like

Origin blog.csdn.net/weixin_45202377/article/details/92373203