Spring Boot has many advantages like auto configuration, starter templates, embedded web server(tomcat), Actuators to manage and monitor spring application etc...
In this article we will see what is Spring Boot Starter templates.
Spring Boot Starters are very useful to load required Spring libraries or dependencies to the class path, which will manage versions automatically so that version conflict can be avoided to free from run time errors or exceptions.
Following are list of dependencies adding into class path with the web starter of SpringBoot
In this article we will see what is Spring Boot Starter templates.
Spring Boot Starters are very useful to load required Spring libraries or dependencies to the class path, which will manage versions automatically so that version conflict can be avoided to free from run time errors or exceptions.
<!-- This is the dependency to add in spring boot project/application (web application) where as in Spring Framework we need add two dependencies.--> <!-- This dependency will load the required libraries to develop spring web applications --> <!-- this spring boot started will add web and webmvc dependencies of spring framework --> <!-- in the next tab you can see the dependency code for spring framework without spring boot --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>
Following are list of dependencies adding into class path with the web starter of SpringBoot
<dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-json</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> </dependency> <dependency> <groupId>org.hibernate.validator</groupId> <artifactId>hibernate-validator</artifactId> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> </dependency> </dependencies>
Post a Comment
Post a Comment