The method findAll() of type ComplaintDaoImpl must override or implement a supertype method
时间: 2024-05-09 07:20:56 浏览: 8
This error occurs when the method "findAll()" in the class "ComplaintDaoImpl" is not properly implementing or overriding a method from its superclass or interface.
To fix this error, you need to ensure that the signature of the method "findAll()" in the "ComplaintDaoImpl" class matches the signature of the method in the superclass or interface that it is supposed to override or implement.
For example, if the "ComplaintDaoImpl" class implements an interface called "ComplaintDao" that has a method called "findAll()", then the signature of the method in the "ComplaintDaoImpl" class should be:
```
public List<Complaint> findAll() {
// implementation
}
```
whereas the signature of the method in the "ComplaintDao" interface should be:
```
List<Complaint> findAll();
```
Make sure that the return type, method name, and parameters of the method in the "ComplaintDaoImpl" class match the method in the superclass or interface.