Can Spring Boot be used with OSGi? If not, any plans to have an OSGi Spring Boot?

前端 未结 7 1274
闹比i
闹比i 2021-01-31 17:28

Can Spring Boot be used with OSGi? If not, any plans to have an OSGi Spring Boot (Apache Felix or Eclipse Equinox)? In my opinion, cloud applications must be highly modular and

相关标签:
7条回答
  • 2021-01-31 18:00

    One possibility is to embed OSGi into your Spring Boot Application, to make some parts of your application accessible through the framework. See https://stackoverflow.com/a/4673904/173101 to see how you can start OSGi programmatically.

    But in general there is nothing like "OSGi-Support". OSGi can be integrated into every Java-Application and, vice versa, you can package every Java-Code (also your Spring-Boot application) into an OSGi-bundle to start it within an OSGi container (although it probably wouldn't make much sense at all).

    0 讨论(0)
提交回复
热议问题