我没有跟上自 2.5 以来对 Spring 框架的所有更改。我正在寻找一个适用于 4.0 的示例应用程序,它有一个基本的框架应用程序,它使用 Controller 和服务以 4.0 的方式完成了 hibernate 。
我用谷歌搜索并查看了 Spring 网站,我认为在过去一年左右的时间里情况变得更糟了。谁能帮帮我?
最佳答案
Spring 指南
看看Spring Guides , 全部使用 Spring 4.0。
(..) these guides are designed to get you productive as quickly as possible – using the latest Spring project releases and techniques as recommended by the Spring team.
我觉得教程Data Access with Spring可以帮助你,尤其是第 3 步:
带有源代码:https://github.com/spring-guides/tut-data
还有入门指南,旨在在 15-30 分钟内完成
带有源代码:https://github.com/spring-guides/gs-accessing-data-jpa .
这可以让您大致了解各种可能性。您可以使用带有或不带有 Spring Data JPA 的解决方案(如 Spring Boot 等) .
Appfuse 原型(prototype)
还有Appfuse 3.0最近发布,支持 Spring 4.0。
AppFuse is a full-stack framework for building web applications on the JVM. It was originally developed to eliminate the ramp-up time when building new web applications. Over the years, it has matured into a very testable and secure system for creating Java-based webapps.
AppFuse 有很多好的模式,只需从 appfuse archetype 构建新项目即可看看。
关于java - Spring Framework 4.0 示例应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20934985/