我已经开始学习来自 NodeJS/Express 背景的 Spring Boot,我想知道我们在侦听特定端口的 Express 应用程序中创建的服务器与 Spring 应用程序中的 Tomcat 服务器之间有什么区别叫容器?为什么我们不能在我们自己创建服务器的 spring boot 应用程序中做同样的事情?
const app = express(); app.listen(3000, () => console.log("Server listening on port 3000"));