Integrate Angular2 project into Tomcat server

前端 未结 1 956
生来不讨喜
生来不讨喜 2021-02-07 10:37

I\'ve developed a Spring maven rest api for my project. For the client side, I\'m using Angular2 with typescript. As new to Angular, referred angular website for the development

1条回答
  •  执念已碎
    2021-02-07 10:57

    At last used angular-cli. ng build --prod creates a production ready build. Copied index.html and .js files under project folder in tomcat webapps (Or under Webcontent in eclipse).

    Edited index.html as and it worked fine

    0 讨论(0)
提交回复
热议问题