Skip to content
Ameen Abozaid
Planned lessonJNR-011-L04

Overriding defaults

  • Lesson 4 of 8
  • Junior
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

yaml
server:
  port: 8081
spring:
  jackson:
    default-property-inclusion: non_null

Check 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.

Lab and exercises Quiz

Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.

Continue to next lesson

Type to search levels, phases, modules and lessons.