Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring Framework 4.0 Sample application

I haven't kept up with all of the changes to the spring framework since 2.5. I am looking for a sample application for 4.0 that has a basic skeleton app with hibernate done the 4.0 way with controllers and services.

I've googled and looked at the spring site, which I think has been made much worse in the last year or so. Can anyone help me out?

like image 611
Thom Avatar asked Jan 05 '14 14:01

Thom


People also ask

What application uses Spring Framework?

The Spring Framework is an open-source framework for building enterprise Java applications. Spring aims to simplify the complex and cumbersome enterprise Java application development process by offering a framework that includes technologies such as: Aspect-oriented programming (AOP) Dependency injection (DI)

What is Spring Framework with example?

Spring is a powerful lightweight application development framework used for Java Enterprise Edition (JEE). In a way, it is a framework of frameworks because it provides support to various frameworks such as Struts, Hibernate, Tapestry, EJB, JSF, etc.

Does Netflix use Spring Framework?

Spring Cloud Netflix provides Netflix OSS integrations for Spring Boot apps through autoconfiguration and binding to the Spring Environment and other Spring programming model idioms.

Is Spring 4 still supported?

12 being available now, let me take the opportunity to provide an update on the maintenance roadmap in 2020. Most importantly, Spring Framework 4.3. x and therefore Spring Framework 4 overall will reach its end-of-life next year: Our EOL cut-off is December 31st, 2020, with no further support on 4.3.


2 Answers

Spring Guides

Take look at Spring Guides, all with 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.

I think tutorial Data Access with Spring can help you, especially step 3:

  • Storing Order Data Using the Java Persistence API (JPA)

with source code: https://github.com/spring-guides/tut-data

There is also Getting Started Guide, designed to be completed in 15-30 minutes

  • Accessing Data with JPA

with source code: https://github.com/spring-guides/gs-accessing-data-jpa.

This give you general look at possibilites. You can use solutions from this (like Spring Data JPA etc) with or without Spring Boot.

Appfuse archetypes

There is also Appfuse 3.0 recently released with support for 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 is full of good patterns, simply build new project from appfuse archetype and take look.

like image 52
MariuszS Avatar answered Sep 29 '22 07:09

MariuszS


There is also an interesting project that helps you to bootstrap your spring app as easy and fast as possible. You probably would like to take a look. Spring Boot

like image 32
Yanis Avatar answered Sep 29 '22 08:09

Yanis