您好我剛剛開始學習backbone.js,現在我正在嘗試將它與spring mvc集成,我到處尋找一個簡單的例子,使用它來了解它是如何工作的,但是我發現是一些我嘗試過並且無法理解的複雜例子。請給我提供一些例子,並幫助我使用Backbonejs和spring mvc做一個簡單的hello world例子。Backbone and spring mvc
0
A
回答
0
喲可以使用Spring開始入門指南「Consuming a RESTful Web Service with Backbone.js」
或去完整的堆棧像RESThub與「Spring Stack tutorial」。
0
如果您熟悉Spring MVC的用法,您可以嘗試在控制器上使用「jackson」擴展名。 Jackson有能力將數據請求轉換爲數據傳輸對象(特別是JSON)形式的回覆。
由於Backbone.js將處理您所有的前端需求,因此僅使用Spring MVC框架的模型和控制器部分是可以的。 Backbone.js的模型將因此消耗您的傑克遜集成的Spring MVC rest服務,並且可以在Backbone Views中呈現。
相關問題
- 1. Spring MVC和Apache Tiles移植到AngularJS/Backbone
- 2. Backbone and Rails重定向
- 3. 調試Javascript(Backbone and Marionette)
- 4. Backbone js Asp.net Mvc AsyncController
- 5. Dojo and Spring
- 6. Spring Boot and Logging
- 7. Spring Batch and ElasticSearch
- 8. DAO,Spring and Hibernate
- 9. Spring and Open JPA
- 10. Spring MockMVC,Spring security and Mockito
- 11. 傳遞Backbone集合到Spring
- 12. LazyLoading with spring and hibernate
- 13. Spring Boot with Jersey and Spring Security OAuth2
- 14. mvc 3 session and authorizeAttribute
- 15. MVC using .netCharting and ABCpdf
- 16. asp.net mvc and recaptcha action
- 17. Group and acl on Spring Security
- 18. spring oauth and client credintials M2M calls
- 19. Spring Security fullyAuthenticationated()and hasRole(「ADMIN」)
- 20. workin with images and crud in mvc
- 21. MVC one view and different models
- 22. asp.net mvc action result and count question
- 23. MVC Razor Sessionless Authentication and Custom User
- 24. mvc and castle windsor - registratrion events
- 25. ExtJS MVC,dynamic loading and i18n
- 26. Spring MVC和JSF MVC
- 27. Backbone.js + Spring MVC。保存模型
- 28. json和Spring MVC
- 29. Spring MVC error
- 30. Spring Boot不識別Spring MVC