Short proiblem descriotrion
- i have 2 jar files main-module.jar and sub-module.jar
- main-module.jar is a spring-boot application
- sub-module.jar has few components which i want to have in my running main-module application
- both main-module and sub-module have simillar package structure eg. com.something.mainapp, com.something.subapp
- @ComponentScan in set to com.something
- i want to be able to include many JAR files only using the JAVA jut command and scan the via ConponentScan to the spring context
files which i have
used commands
java -cp sub-module.jar:* -jar .\main-module.jar
