[英]War Creation Using Gradle
I am developing Spring Boot with Angular application.我正在使用 Angular 应用程序开发 Spring Boot。 I have my angular project under src/main/webapp folder.
我在 src/main/webapp 文件夹下有我的 angular 项目。 I modified the angular.json to output the build files to resources/static folder.
我修改了 angular.json 以将构建文件输出到资源/静态文件夹。 Until here, the files are generated perfectly.
到这里,文件就完美生成了。 But when I am generating the war file using gradle, I can see all the src and node_modules folder from webapp folder in the generated war.
但是当我使用gradle生成war文件时,我可以在生成的war中看到webapp文件夹中的所有src和node_modules文件夹。
Can anyone assist on how to exclude these files in creating the war by copying the build files to resources.static folder.任何人都可以通过将构建文件复制到 resources.static 文件夹来帮助如何在创建战争时排除这些文件。
This guy has it solved https://github.com/indrekots/static-content-demo这家伙解决了https://github.com/indrekots/static-content-demo
It's just as you need, I think这正是你需要的,我想
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.