Fix traversal of ApplicationContext hierarchy to resolve potential Liquibase beans Fixes #22680

Comment From: pivotal-issuemaster

@biergit Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

Comment From: pivotal-issuemaster

@biergit This Pull Request contains an obvious fix. Signing the Contributor License Agreement is not necessary.

Comment From: wilkinsona

@biergit Thanks for the pull request. Can you please sign the CLA? The proposal will result in a change in functionality which means it is not considered to be an obvious fix.

Comment From: pivotal-issuemaster

@biergit Thank you for signing the Contributor License Agreement!

Comment From: biergit

Ok @wilkinsona that wasn't obvious to me ;) I'm part of the closer family now.

Comment From: wilkinsona

Thanks very much for making your first contribution to Spring Boot, @biergit. This has been fixed in 2.2, 2.3, and 2.4.