I am new to Spring/Maven, and am following this tutorial: Serving Web Content with Spring MVC.
Everytime I run mvn spring-boot:run, I get this error:>
I've same error as yours and finally I found it was cased by the wrong cooperation version between "spring-boot-starter-parent" and "spring-boot-autoconfigure", thereof making sure with same version. And also check their versions are the newest nor not.
org.springframework.boot
spring-boot-starter-parent
2.1.5.RELEASE
org.springframework.boot
spring-boot-autoconfigure
2.1.5.RELEASE