Home » Enterprise Java » spring

spring

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 »

Spring Batch ItemReaders and ItemWriters Example

This article is a tutorial about the various Item Readers and Item Writers in Spring Batch. We will use Spring Boot to speed our development process. Table Of Contents 1. Introduction 2. Technologies Used 3. Spring Batch Project 3.1. Build.gradle 4. Item Readers and Writers 4.1. FlatFileItemReader and JpaItemWriter 4.2. JdbcCursorItemReader and StaxEventItemWriter 4.3. StaxEventItemReader and FlatFileItemWriter 5. UnBoxing Item ...

Read More »

Spring and Hibernate Example

Welcome readers, in this tutorial, we will create a simple application that uses the spring and Hibernate framework to display the user details on a webpage. For this tutorial, we’ll have a welcome page that fetches the user records from the MySQL database and displays it on the interface. 1. Introduction Developers can refer to this link to briefly understand the Spring, ...

Read More »

Spring Batch Parallel Processing Example

This article is a tutorial about parallel processing in Spring Batch. We will use Spring Boot to speed our development process. 1. Introduction Spring Batch is a lightweight, scale-able and comprehensive batch framework to handle data at massive scale. Spring Batch builds upon the spring framework to provide intuitive and easy configuration for executing batch applications. Spring Batch provides reusable ...

Read More »

Spring MVC and Hibernate Login Form Example

Hello readers, in this tutorial we will create a simple login application that uses the spring and Hibernate framework to validate the user’s credentials. Table Of Contents 1. Introduction 1.1 What is Spring framework? 1.2 What is Hibernate? 2. Spring MVC and Hibernate Login Form Example 2.1 Tools Used 2.2 Project Structure 2.3 Project Creation 3. Application Building 3.1 Database ...

Read More »

Spring Batch CommandLineJobRunner Example

This article is a tutorial about Spring Batch and running the jobs with CommandLineJobRunner. We will use Spring Boot to speed our development process. 1. Introduction Spring Batch is a lightweight, scale-able and comprehensive batch framework to handle data at massive scale. Spring Batch builds upon the spring framework to provide intuitive and easy configuration for executing batch applications. Spring ...

Read More »

Spring MVC CRUD using MongoDB Tutorial

Hello readers, in this tutorial we will create a simple Spring MVC application that uses a document-oriented NoSQL database for its database layer. For this tutorial, we’ll perform the basic Create, Read, Update, and Delete database operations for managing the list of users. Table Of Contents 1. Introduction 1.1 What is Spring framework? 1.2 What is MongoDB? 2. Spring MVC ...

Read More »

Spring JdbcBeanDefinitionReader Example

This article is about the Spring JdbcBeanDefinitionReader. When would you use this class? When you want to dynamically add externally defined bean definitions in Spring. The Spring JdbcBeanDefinitionReader is a bean definition reader that reads values from a database table and expects columns for bean name, property name and value as String. The formats for each are identical to the ...

Read More »

Spring Security Login Example

In this article we will learn how to use spring security to create a simple login page. You will need an IDE (I am using IDEA IntelliJ), JDK 1.8 or later, Maven 3.0+. 1. Introduction The Spring Framework provides a comprehensive programming and configuration model for modern Java-based enterprise applications – on any kind of deployment platform. A key element ...

Read More »

Spring Integration FTP Gateway Example

1. Introduction Spring Integration provides gateways and adapters as a means to connect to external endpoints. In his blog, Josh Long explained the difference between adapters and gateways as: An adapter receives messages from an external messaging system (JMS, e-mail, SFTP, whatever) and “adapts” it to the messaging system (as a Spring Integration Message). Once a message comes in, via ...

Read More »