Spring boot web application configurations.
In this page we will show some of the most commonly used spring boot web application based configurations.
Spring Boot comes with build in intelligence which makes it easy to create the web or standalone application.
Spring Boot can do a lot of things for us without even writing a single line of code for our web application and we will be
covering few of those configurations.
By default, sprint boot provides tomcat as a container and it runs on the default port 8080. Incase we want to
change the default port, then we need to override the defalt port in the application.properties file.
Add below line in "application.properties" file:
Default context for a Spring Boot web application is "/". Spring Boot allows us to change the application context
through configurations. You can change it in "application.properties" file as shown below:
Spring Boot has no required dependencies for the logging (except common logging API). Spring Boot internally use
LoggingSystem abstraction that attempts to configure logging based on the content of the classpath.
We can fine tune log out in Spring Boot application by setting log level in the application.properties file using
logging.level as a predefined prefix