Implemented below issue

https://github.com/spring-projects/spring-boot/issues/42745

Comment From: pivotal-cla

@santo-raj 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-cla

@santo-raj Thank you for signing the Contributor License Agreement!

Comment From: wilkinsona

Thanks for the PR, but, as per the PR template, we prefer to handle single-line version upgrades like this ourselves:

https://github.com/spring-projects/spring-boot/blob/4b87918b6d410cc3cb63b8a32a30e81ead77400e/.github/PULL_REQUEST_TEMPLATE.md?plain=1#L14-L19

Furthermore, 3.0.2 hasn't been released yet so these changes will not build cleanly.