bonusolz.blogg.se

Spring boot web maven
Spring boot web maven











spring boot web maven

If we want to add the Jetty server in the application, we need to add the spring-boot-starter-jetty dependency in our pom.xml file. It is used when machine to machine communication is required. It is an HTTP server and Servlet container that has the capability of serving static and dynamic content. The Spring Boot also supports an embedded server called Jetty Server. Spring Boot also supports another two embedded servers:įor servlet stack applications, the spring-boot-starter-web includes Tomcat by including spring-boot-starter-tomcat, but we can use spring-boot-starter-jetty or spring-boot-starter-undertow instead.įor reactive stack applications, the spring-boot-starter-webflux includes Reactor Netty by including spring-boot-starter-reactor-netty, but we can use spring-boot-starter-tomcat, spring-boot-starter-jetty, or spring-boot-starter-undertow instead. With Spring Boot, default embedded server is Tomcat.

spring boot web maven

The advantage of embedded server is, we do not require pre-installed server in the environment. Embedded server is embedded as a part of deployable application. Web JARs for managing the static dependenciesĮach Spring Boot application includes an embedded server.The spring-boot-starter-web auto-configures the following things that are required for the web development:













Spring boot web maven