Overriding defaults
On This Lesson 4 topics
This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.
In this lesson
change Boot's behavior in the right order of preference.
Planned topics
- First choice: a property in
application.yml. - Second: a customizer bean for the component.
- Third: define your own bean of that type; Boot backs off.
- Excluding an auto-configuration is a last resort and needs a reason.
Draft outline details
Demonstration
server:
port: 8081
spring:
jackson:
default-property-inclusion: non_nullCheck your understanding
Which is safer, property or exclusion?
Show answer
A property; exclusion removes everything that configuration provides.
Practice
Apply this lesson with the module's lab, exercises and quiz.
Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.