In-Built Server Support
Spring Boot has in-built server support allowing us to embed web servers. This feature allows us to create a stand-alone application, an executable JAR File which is self-contained. By default, Spring Boot uses Tomcat as its default server.
However, if you want to change that you can define an external dependency for the server you want to use in your POM File.
Configuring the server
You can further configure the embedded server, and there are many ways to do this, we’ll see the example of using an external properties file :
# Set Server Port
server.port = 8080
# Set Server Context Path
server.servlet.context-path=/myapp
SpringBoot Configuration
Spring Boot is a powerful framework built on top of the Spring framework. Spring Boot allowed programmers to focus mainly on the business logic without worrying about the external configuration and setting up the environment resources like server setup.
Contact Us