Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 927 Bytes

README.md

File metadata and controls

17 lines (14 loc) · 927 Bytes

SpringMVC

a simple spring mvc project to experiment using Spring Boot

###Why Spring Boot? Spring Boot makes it easy to get started. SpringBoot was created to address the complexity of configuration. It enables auto configuration with some default settings(generally sufficient) which otherwise would require to set up the configuration manually. All that is needed to get started is just add the @SpringBootApplication annotation. In this application the annotated class is com.premkumar.springmvc.Application.

###Why Spring Boot is not loading Spring MVC and is closing immediately after starting the spring boot application? Spring Boot needs an application container like tomcat to load MVC files. Add the following dependency to the pom.xml file:

<dependency>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-web</artifactId>
	<version>1.4.0.RELEASE</version>
</dependency>