Run spring boot with jdk9 using jigsaw modules

后端 未结 4 1942
予麋鹿
予麋鹿 2020-12-18 03:57

What\'s wrong with this application. I thought the mix of classpath jars and module jars are valid. For all jars not having an explicit module-info become an automatic modul

4条回答
  •  -上瘾入骨i
    2020-12-18 04:46

    I assume spring.boot is an automatic module. An automatic module doesn't declare it dependences so you have to use --add-modules to ensure that any explicit modules needed are resolved. If spring.boot were an explicit module then I assume it would requires java.sql and you won't have this issue.

提交回复
热议问题