How to initialize all of Spring Boot from an external Jar?

There is a nucleus, rises from spring boot, there is a service which downloads the jar files, the Jar files are some plugins for the main application (Core)
The problem is that the jar files can be described by your Bina, repositories, etc, they use annotated spring, the question is how to force spring to scan only downloaded the jar file, what would all the beans were in, so to speak in the Bank that they enrolled in the context of the spring and they could easily injectate and use.
June 7th 19 at 15:04
2 answers
June 7th 19 at 15:06
Solution
What you need is it?
If mono, a sample project or your example. Because it is difficult now to think, I'd appreciate it. - gino.Botsfo commented on June 7th 19 at 15:09
I need to load all the beans from a jar file in the main project do not have dependencies on these jar, they know only the interface which describes the plugin - gino.Botsfo commented on June 7th 19 at 15:12
Thank you very much, your answer is moved to the right idea! - gino.Botsfo commented on June 7th 19 at 15:15
June 7th 19 at 15:08
Solution
The problem was solved adding the classpath and creating a spring.factories and Bina auto.

Find more questions by tags SpringJava