Home » Enterprise Java » spring

spring

Spring @ModelAttribute Annotation Example

In spring, the @ModelAttribute annotation populates the model data or the method parameters even before the handler method is invoked or called. In this tutorial, we will show how to implement the Spring @ModelAttribute Annotation with the Spring MVC framework. 1. Introduction 1.1 Spring Framework Spring is an open-source framework created to address the complexity of an enterprise application development ...

Read More »

Spring @PathVariable Annotation Example

In spring, the @PathVariable annotation is used to bind the URI template variables to the handler method parameters of a controller in the Spring MVC framework. In this tutorial, we will show how to implement the Spring @PathVariable Annotation with the Spring MVC framework. 1. Introduction 1.1 Spring Framework Spring is an open-source framework created to address the complexity of ...

Read More »

Spring Data GemFire Tutorial

Welcome to the Spring Data GemFire tutorial. GemFire is a product from Pivotal. Pivotal Gemfire is an in-memory data grid powered by Apache Geode. Here is a quote from the Pivotal GemFire documentation: Pivotal GemFire is a data management platform that provides real-time, consistent access to data-intensive applications throughout widely distributed cloud architectures. GemFire pools memory, CPU, network resources, and ...

Read More »

Spring Boot WAR Deployment Example

In this post, we feature a comprehensive Example on Spring Boot WAR Deployment. We will demonstrate how to convert a Spring Boot JAR web application to a WAR file that can be deployed to a servlet container. 1. Introduction Spring Boot has become very popular among web application developers. Spring Boot will automatically configure a DispatcherServlet and register HandlerMappings, Adapters, ...

Read More »

Spring Boot REST API Tutorial

In this tutorial, we will review REST API concepts and provide an example of REST API development using Spring Boot. 1. Introduction We have heard quite a lot about REST recently. REST (Representational State Transfer) is an architectural style that describes principles and outlines constraints for developing web services on the internet. Table Of Contents 1. Introduction 1.1 Uniform Resource ...

Read More »

Spring @RequestParam Annotation Example

In this post, we feature a comprehensive Example on Spring @RequestParam Annotation. In spring, the @RequestParam annotation is used to bind the values of a query string to a controller method in the Spring MVC framework. In this tutorial, we will show how to implement this annotation with the Spring MVC framework. 1. Introduction 1.1 Spring Framework Spring is an ...

Read More »

Spring Integration Http Gateway Example

1. Introduction In this post, we feature a comprehensive Example on Spring Integration Http Gateway. Messaging Gateway is an Enterprise Integration pattern that encapsulates the messaging code enabling the application to have only business logic code. In Spring Integration, the Messaging Gateway pattern is implemented in the gateway component, which is used to provide an entry / exit system between ...

Read More »

Spring Boot Hello World Example

In this post, we will demonstrate a Spring Boot Hello World application. 1. Introduction If you have worked with Spring projects in the past, you might agree that they require quite a bit of configuration. Some of this configuration is boilerplate code related to infrastructure and has nothing to do with business requirements. Spring Boot is a technology that will ...

Read More »

Spring with Maven Tutorial

In this post, we feature a comprehensive Tutorial on Spring with Maven. Spring Framework is a Java application framework that provides many useful services for building applications. Apache Maven is a software project management and comprehension tool. In this article, I will demonstrate how to build a web application utilizing Spring MVC framework as a Maven project. Table of Contents ...

Read More »

Spring Security OAuth2 Example

In this article we will learn how to integrate OAuth2 with Spring Security. 1. Introduction Spring Security is a powerful and highly customisable authentication and access-control framework. It is the de-facto standard for securing Spring-based applications. It is a framework that focuses on providing both authentication and authorisation to Java applications. Like all Spring projects, the real power of Spring ...

Read More »