简体   繁体   English

在为移动客户端开发spring REST API时如何维护Spring Context

[英]How to maintain the Spring Context while developing the spring REST API for Mobile Client

I would like to know how much spring REST API is beneficial in developing the Android mobile client from the framework point of view. 从框架的角度来看,我想知道Spring REST API在开发Android移动客户端方面有多少好处。 Mostly I am curious about how the context is maintained using Spring REST API for developing mobile client. 通常,我对如何使用Spring REST API维护上下文来开发移动客户端感到好奇。

I heard using RSET API dropwizard in combination with Nginx server works better but I am not aware of these technologies. 我听说将RSET API dropwizard与Nginx服务器结合使用效果更好,但是我不了解这些技术。

We are using Spring MVC to create REST API for a mobile client and it is quite easy and straightforward. 我们正在使用Spring MVC为移动客户端创建REST API,这非常容易和直接。

Spring context is created on application deploy and lives the whole time. Spring上下文是在应用程序部署时创建的,并且始终存在。 We are not using sessions, each REST API call is stateless, each request is signed with using HMAC in HTTP header. 我们不使用会话,每个REST API调用都是无状态的,每个请求均使用HTTP标头中的HMAC进行签名。

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

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