简体   繁体   中英

Angular-Cli with ng-serve

我知道springboot默认使用嵌入式tomcat Web服务器,因此我们只能使用main方法运行应用程序。但是我已经开始学习angular 6,我看到angular-cli使用了另一个web服务器(也许是同一个Web服务器)。为什么我们使用Angular-cli中的ng-serve命令我们已经有一个嵌入式Tomcat Web服务器,我们如何使用2个Web服务器

The main reason for the difference is that Tomcat is a special webserver for specific java based programs, and it is not designed to run javascript file hosting.

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