So I have this code
import org.springframework.web.bind.annotation.GetMapping;
And I already have the following in my POM file
<packaging>war</packaging>
<properties>
<spring.version>4.3.0.RELEASE</spring.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring.version}</version>
</dependency>
</dependencies>
Yet when I built it ends up complaining package org.springframework.web.bind.annotation does not exist
Why? I already added spring web as a dependency. What am I doing wrong?
mvn install
– Leishmaniasis