I am trying to adapt the REST Controller example on the Spring Boot website.
Unfortunately I\'ve got the following error when I am trying to access the localhost:8080/
Adding to MattR's answer:
As stated in here, @SpringBootApplication automatically inserts the needed annotations: @Configuration, @EnableAutoConfiguration, and also @ComponentScan; however, the @ComponentScan will only look for the components in the same package as the App, in this case your com.nice.application, whereas your controller resides in com.nice.controller. That's why you get 404 because the App didn't find the controller in the application package.