Serve static resources within jar files by Spring boot
问题 I'm developing a solution by multiple maven modules to handle different bounded contexts. Thanks to spring boot each module exposes own rest api and all of them hosted in one maven module with a class that annotated by @SpringBootApplication. The simplified project structure is looks like this: parent |-- pom.xml |-- ... |-- host |-- Application.java |-- resources |-- index.html |-- driver |-- api |-- resources |-- register.html |-- notify |-- ... |-- passenger |-- ... I've tried to use the