Updating maven project after importing it has fixed this issue for me:
Right click on the project –> Maven –> Update project.
Updating maven project after importing it has fixed this issue for me:
Right click on the project –> Maven –> Update project.