是否可以在Node.js中运行Spring Boot REST API

purav desai:

是否可以在Node.js而不是Tomcat上运行Spring Boot REST API服务,或者如果不是,则可以在我们可以运行Spring Boot REST应用程序的其他服务器上运行Node.js。

请帮我弄清楚。

RUARO Thibault:

NodeJs是运行Javascript代码的服务器它无法运行Java Web应用程序,而Java Web应用程序需要将JVM(Java虚拟机)运行到JVM中。在您询问之前,不,NodeJS无法运行JVM。是不是为此而造的。要理解我的意思,这就像是要用舷外发动机驾驶汽车……绝对不可能。

所以不,您不能在NodeJs服务器的顶部运行Spring Boot REST Application。

如果您不想使用Tomcat,那么还有其他选择:https : //blog.idrsolutions.com/2015/04/top-10-open-source-java-and-javaee-application-servers /

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

Spring Boot REST API中的对象数组

我们可以在spring boot中基于rest api的路径参数实现@Conditional Bean吗?

在Rest API 的方法参数级别的Spring boot 中是否有验证?

Spring Kafka的Spring Boot Rest API

Spring Boot搜索API REST设计

使用LDAP认证的Spring Boot REST API

Spring Boot REST API-请求超时?

RestController的设计难题-Spring Boot REST API

在Spring Boot REST API中上传文件

使用Rest API 404的Spring Boot

Spring Boot + REST Api +社交登录

Spring Boot Rest API安全性

Spring Boot:从@Scheduled方法访问rest api

使用 java 和 spring boot 的 REST api

在Spring Boot中的REST API中隐藏ManyToOne字段

如何在 Spring Boot 中读取 REST api 的响应

Spring Boot Rest API响应更改中的对象字段顺序

如何在Spring Boot REST API中捕获AccessDeniedException

Spring Boot可以生成REST API文档作为错误页面吗?

Spring Boot应用程序可以为REST API具有单独的安全性吗?

Spring Boot REST·@Constraint是否要删除?

对NodeJS的React可以POST到Spring Boot REST API,但不能放入相同的API-CORS问题

是否可以在单个域中将 Spring Boot 作为 API 和 Wordpress 作为前端 CMS 运行

是否可以在yaml或json中获取Keycloak的REST api定义?

是否可以在 Azure Functions 中的 TimerTrigger 内调用 rest api

如何使用Spring Boot和Spring Security保护REST API?

REST API node.js

具有oneToMany关系的Spring Boot Rest API Post方法

对Spring Boot项目的Angular 2 REST API调用