Enabling Non-Spring Libraries to Access Spring Boot Components
Jump to navigation
Jump to search
Internal
Overview
This article describes a possible approach to give non-Spring libraries access to Spring Boot runtime components.
Playground Example
Approach
The Spring Boot runtime should implement a Spring component whose job is to configure a dedicated class in the dependency package. This solution assumes that the dependency package "cooperates" and we can write code in it. The dedicated class in the dependency package is conventionally named SpringApplicatioinContextAccess.