简体   繁体   English

如何将Spring MVC项目与Angle 2集成?

[英]How to integrate spring mvc project with angular 2?

我不使用Maven创建了spring mvc项目,现在我想创建一个带有angular 2的页面,所以我创建了带有angular 2的页面。现在我希望这些angular 2与spring mvc集成在一起

If you didn't use maven, the only solution I see is to compile your Angular 2 application with 如果您不使用maven,我看到的唯一解决方案是使用编译Angular 2应用程序

ng build

This will generate the dist folder. 这将生成dist文件夹。 Copy that folder to the target folder of your spring application. 将该文件夹复制到spring应用程序的target文件夹。

But I don't understand why you don't want to use a build automation tool. 但是我不明白为什么您不想使用构建自动化工具。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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