I want to start with the most simple Maven Project with a simple REST resource not using Spring Boot and generate a .war artifact that is deployed in a servlet container. I am using Eclipse IDE. So I would like to know what is the basic things in place needed to create such a Project.
I think I need at least this dependences:
- Spring-core, Spring-mvc, Spring-web, Spring-context,
I also need the stuff with a class annotated with the @RestController
annotation, with some method annotated with the @Requestmapping
and so.
But whats the minimum content I should have in the WebContent
directory and its subfolders META-INF
, WEB-INF
... in order to the servlet container to know how to use the .war component? I dont want any HTML
nor JSP
pages.