spring boot restcontroller cannot be resolved to a type code example
Example: restcontroller cannot be resolved to a type eclipse
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>4.1.6.RELEASE</version>
</dependency>