Go to your maven repository directory
For windows on below path
C:\Users\YourUser\.m2\repository\org\springframework\boot
Then delete spring-boot-autoconfigure
folder.
Now go to eclipse Right click on project -> Maven -> Update Project
.
This solved the problem for me.