Spring MVC Maven Modules

旧街凉风 提交于 2019-12-02 10:01:13

By what you described you should consider maven overlays.

An overlay of a WAR file, is simply a Maven project that uses another project's WAR output as a dependency, rather than a project's JAR. When the overlay project is built, the underlying project's WAR file is exploded and files in the overlay project added to it. If an overlay project has a file with the same path and name as a file in the underlying WAR it will replace it.

You would include the war from one module in the same way as you do now, and override the files (either classes or static resources) in your current module. A blog that explains more, and a step-by-step guide.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!