您好我剛剛開始學習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. Backbone and document.title
- 2. Spring MVC和Apache Tiles移植到AngularJS/Backbone
- 3. Backbone and Rails重定向
- 4. Backbone> Multiple Routers and History.start
- 5. 調試Javascript(Backbone and Marionette)
- 6. Backbone JS,Marionette and Require JS
- 7. spring mvc 4 and swagger 2 intergation not working
- 8. Spring Back with Backbone URL
- 9. Spring Batch and ElasticSearch
- 10. Spring Boot and Logging
- 11. DAO,Spring and Hibernate
- 12. Spring,Multithreading and jms
- 13. Dojo and Spring
- 14. Liquibase and spring jpa
- 15. Spring and Open JPA
- 16. Spring AbstractTransactionalJUnit4SpringContextTests and simpleJdbcTemplate
- 17. Spring MockMVC,Spring security and Mockito
- 18. Backbone js Asp.net Mvc AsyncController
- 19. MVC ModelState and Collections
- 20. 傳遞Backbone集合到Spring
- 21. LazyLoading with spring and hibernate
- 22. junit with spring and mybatis
- 23. Spring Boot with Jersey and Spring Security OAuth2
- 24. MVC using .netCharting and ABCpdf
- 25. asp.net mvc and recaptcha action
- 26. mvc 3 session and authorizeAttribute
- 27. Group and acl on Spring Security
- 28. NoSuchMethodError:org.thymeleaf.standard.StandardDialect with spring 4 and thymeleaf 3
- 29. Spring Data JPA - Specifications and Querydsl
- 30. Spring Security fullyAuthenticationated()and hasRole(「ADMIN」)