继承“HibernateDaoSupport”后,报“The hierarchy of the type AccoutDaoImpl is inconsistent”的解决方案

时间:2023-12-16 21:27:14

解决办法:

今天写了一段很简单的代码,Eclipse竟然报错

import org.springframework.jdbc.core.support.JdbcDaoSupport;  

import com.rainbow.springdemo.dao.AccountDao;  

public class AccoutDaoImpl extends JdbcDaoSupport implements AccountDao {  

    @Override
public void outMoney(String out, Double money) { } @Override
public void inMoney(String in, Double money) { }
}
<!-- https://mvnrepository.com/artifact/org.springframework/spring-beans -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>4.3.9.RELEASE</version>
</dependency>