【问题标题】:is Spring for android useful? [closed]Spring for android 有用吗? [关闭]
【发布时间】:2014-04-17 17:34:25
【问题描述】:

关于spring for android项目的一个小问题。 我必须在 Spring 开发的服务器上开发一个使用 RESTful 服务的 android 应用程序。 现在从spring for android开始有用吗? 这个项目有前途吗?因为最后一次发布是 2012 年 12 月。

是否有关于如何开发必须使用 RESTful 服务的 Android 应用的好教程?

【问题讨论】:

    标签: android spring-android


    【解决方案1】:

    如果您需要,Android 版 Spring 很有用:

    • Android 的 Rest 客户端

    • 对访问安全 API 的身份验证支持

    鉴于您的问题,您说您将使用 RESTful 服务。所以我的回答是它可能对你有用。

    Spring Android 不会提供依赖注入支持、事务支持等。

    我使用与 spring android 集成并简化您的编码的 android 开源框架:Android Annotations。这将减少你的代码并给你一种依赖注入。

    获得依赖注入支持的另一个选项是roboguice

    这里有一个教程,向您解释如何使用 spring 创建一个 RESTful android 应用程序:http://blogs.burnsidedigital.com/2012/08/how-to-create-restful-http-for-android-in-4-easy-steps-using-spring/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-09-30
      • 1970-01-01
      • 1970-01-01
      • 2021-07-23
      • 1970-01-01
      • 2018-06-07
      • 2012-12-23
      • 2012-06-13
      相关资源
      最近更新 更多