top of page

Spring Boot Essentials

  • Writer: Rohan Roy
    Rohan Roy
  • May 13, 2021
  • 1 min read

Spring Boot has turned out to be the most sought after framework on java for application development. In this blog I tried to get a gist of the essential information needed to keep the Spring Boot knowledge up-to-date.

1. While any Spring application starts, by default, INFO logs are shown.

2. --debug enables DEBUG logging while executing an application:

$ java -jar myproject.jar --debug

3. Lazy initialization of beans could be useful for better resource utilization. But the downside is that unless an http request is made, beans might not be initialized and it may delay the response. If not tested by enabling all the beans before configuring lazy initialization, as beans are instantiated, as and when requests arrive, it might lead to memory dump.

4. Logger levels can be set for logging systems in the Spring environment with the help of application.properties, by using logging.level.<logger-name> = <level>. <level> can have values from: TRACE, DEBUG, INFO, WARN, ERROR, FATAL, or OFF. The root logger can be configured by using logging.level.root. Some examples are:

logging.level.root=warn

logging.level.org.springframework.web=debug

logging.level.org.hibernate=error

The above approach will only work for package level logging

4. Logger levels logging.level.<logger-name>=<level> where level is one of TRACE, DEBUG, INFO, WARN, ERROR, FATAL, or OFF. The root logger can be configured by using logging.level.root

Recent Posts

See All

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating

©2025 Rohan Roy

bottom of page