java module system - why do we need to explicitly specify the default modules in -add-modules
问题 Recently I was converting a spring boot(2.1.3 version) dummy project into a spring boot muti module project on java 11. To make it work I have to explicitly add --add-modules=java.instrument as run time vm argument. Please find the related so question here Spring boot multi module project with java 11 throws cannot access class org.springframework.cglib.core.ReflectUtils Then I checked the default modules of my installed jdk using —list-modules and I can see that java.instrument in that. I