I encountered the same problem and resolved it by updating the project in Eclipse. Here are the steps I followed:
pom.xml
file in your project.This should refresh your project and resolve any issues related to Maven dependencies or project configuration.
I hope this solution helps!