© K. Siva Prasad Reddy 2017

K. Siva Prasad Reddy, Beginning Spring Boot 2, https://doi.org/10.1007/978-1-4842-2931-6_3

3. Spring Boot Autoconfiguration

K. Siva Prasad Reddy

(1)Hyderabad, India

The Spring Boot autoconfiguration mechanism heavily depends on the @Conditional feature. This chapter explores how you can conditionally register Spring beans by using the @Conditional annotation and create various types of Conditional implementations meeting certain criteria. Then you will look into how Spring Boot leverages the @Conditional feature to configure beans automatically based on certain criteria.

Exploring the Power of @Conditional

While developing Spring-based applications, you may come across a need to register beans conditionally. For example, ...

Get Beginning Spring Boot 2: Applications and Microservices with the Spring Framework now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.