spring boot中Express服务器和嵌入式服务器的区别

问题描述 投票:0回答:0

我已经开始学习来自 NodeJS/Express 背景的 Spring Boot,我想知道我们在侦听特定端口的 Express 应用程序中创建的服务器与 Spring 应用程序中的 Tomcat 服务器之间有什么区别叫容器?为什么我们不能在我们自己创建服务器的 spring boot 应用程序中做同样的事情?

const app = express();
app.listen(3000, () => console.log("Server listening on port 3000"));
java node.js spring spring-boot express
© www.soinside.com 2019 - 2024. All rights reserved.