Q: How to integrate Angular 7 application in Springboot Jar? I want to integrate my front end Angular 7 application which is accessible via http://localhost:4200/ in spring boot jar so that after integration with spring boot Angular 7 application will be accessible through spring boot port via url http://localhost:8081/
I want to integrate angular in spring boot jar itself so that angular application would be accessible when I will run java -jar App.jar
I am using gradle for building spring boot jar.

A: Add a build step to your maven/gradle to build Angular app by invoking ng build, then copy generated files from your Angular app's dist folder into Java resources. If you're using gradle, this step should be executed before processResources. If using maven, I have no clue, I haven't used maven in centuries, sorry.
Another options is to create a npm task which will do the same before you run your java build.
