ClassLoader.getResource("mypackageroot") fails against exploded module

Alan Bateman Alan.Bateman at
Sat Feb 4 07:02:06 UTC 2017

On 03/02/2017 18:17, Juergen Hoeller wrote:

> Spring's classpath scanning works fine on JDK 9 for classpath resources
> (archives as well directories) and also for archives on the module path.
One API to look at for scanning the module path is 
ModuleFinder.of(Path...). That will give you the set of packages in each 
module. If you want to go deeper then you can open the modules to get a 
ModuleReader and list/find all the resources in the module.


More information about the jigsaw-dev mailing list