@ComponentScan does not detect beans in a jlink'ed Java runtime image
问题 I'm using JavaFX on Java 11 to create a desktop app. The app is bundled into a custom runtime image with all its modules and their dependencies using jlink . For dependency injection, the app relies on the Spring Framework. I'm aware that Spring modules currently do not include a module-info.class , instead they are shipped as "automatic modules". Since automatic modules cannot be bundled with jlink , I manually added module-info.class to each Spring dependency JAR using the Moditect Maven