Changed the spring-webmvc dependency to spring-web in the POM.