简体   繁体   中英

War Creation Using Gradle

I am developing Spring Boot with Angular application. I have my angular project under src/main/webapp folder. I modified the angular.json to output the build files to resources/static folder. 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.

Can anyone assist on how to exclude these files in creating the war by copying the build files to resources.static folder.

This guy has it solved https://github.com/indrekots/static-content-demo

It's just as you need, I think

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM