top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What are the minimum configurations needed to create spring MVC application?

+1 vote
768 views
What are the minimum configurations needed to create spring MVC application?
posted Dec 6, 2017 by Gn Guruswamy

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

For creating a simple Spring MVC application, we would need to do following tasks.

Add spring-context and spring-webmvc dependencies in the project.

Configure DispatcherServlet in the web.xml file to handle requests through spring container.

Spring bean configuration file to define beans, if using annotations then it has to be configured here. Also we need to configure view resolver for view pages.

Controller class with request mappings defined to handle the client requests.

Above steps should be enough to create a simple Spring MVC Hello World application

answer Dec 8, 2017 by Manikandan J
...