I keep getting this error, and can\'t figure out why.. yes I know there many people had similar issues, but reading the answers they got, does not solve my problem.
I had exactly the same problem try to put the two classes in the same package and add line in the pom.xml
org.springframework.boot spring-boot-starter-web 1.2.0.RELEASE