September 2017
Beginner
313 pages
7h 15m
English
© K. Siva Prasad Reddy 2017
K. Siva Prasad Reddy, Beginning Spring Boot 2, https://doi.org/10.1007/978-1-4842-2931-6_3
K. Siva Prasad Reddy1
(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.
While developing Spring-based applications, you may come across a need to register beans conditionally. For example, ...
Read now
Unlock full access