SpringBoot: Registering Bean Definitions

Introduction

Kondah Mouad
17 min readApr 29, 2021

In my previous article SpringBoot 2.4.x Configuration, we explored how spring load configuration files and create/update application’s environment.

In this article, we will continue our investigation, in particular, we will see how spring loads and register BeanDefinitions.

Let’s continue our investigation, starting from configureIgnoreBeanInfo method (just after environment have been prepared).

SpringApplication#configureIgnoreBeanInfo

Specify Introspector.IGNORE_ALL_BEANINFO Flag.

spring.beaninfo.ignore configuration is used to determine whether to skip the search of the BeanInfo class.

SpringApplication#printBanner

Banner is the displayed output when Spring Boot application starts, and can be configured through banner.txt file, it can be placed in the classpath, or specified using spring.banner.location property

--

--

Kondah Mouad
Kondah Mouad

No responses yet