Spring XD Batch Job – How to Start

The Spring XD provides a one stop shop for Bigdata solution, is a unified, distributed, and extensible service for data ingestion, real time analytics, batch processing, and data export. The tutorial will guide you how to create a Batch Job Application with Spring XD.

Related Articles:
Spring XD Stream – How to start with Stream

[Continue reading…] “Spring XD Batch Job – How to Start”

Spring Based Configuration – Java Annotation

Spring based configuration using Annotation help you to create Spring configurations without XML.
This tutorial give you an example with most of Spring Annotation for configuration: @Configuration, @Bean (with custom bean lifecycle method), @Import, @Scope. And they’re in multi-configuration context.

[Continue reading…] “Spring Based Configuration – Java Annotation”

Spring IoC Container

At the Core of Spring Framework, Spring IoC (Inversion of Control) is implemented using the Dependency Injection design pattern. The Spring IoC Container creates, configures and connects the objects (which are called Beans), then manage their life cycle.

This tutorial introduce principle of Spring IoC and a simple example using Containers to you.

[Continue reading…] “Spring IoC Container”

Spring Bean Post Processors

The BeanPostProcessor interface helps us provide our own methods before the initialization of beans and likewise after the initialization of the bean.

BeanPostProcessor are common for all beans in the container where it is defined, so it is different from @PostConstruct, InitializingBean and custom init method which are defined on the bean itself.

Related Article: Spring Bean Life Cycle

[Continue reading…] “Spring Bean Post Processors”

Spring JPA Web Support

Spring JPA Web support ships by a module for convenient programming with repository model.
– A DomainClassConverter helps to resolve an repository instance from request parameters or path variables.
– HandlerMethodArgumentResolver is helper for resolving Pageable and Sort instances from request parameters.

[Continue reading…] “Spring JPA Web Support”

How to configure Apache Log4j2 with Spring Boot

Apache Log4j2 is an upgrade to Log4j that provides significant improvements over its predecessor, Log4j 1.x, and provides many of the improvements available in Logback while fixing some inherent problems in Logback’s architecture.The tutorial will introduce way to configure Log4j2 with Spring Boot

Related Posts:
Logging with SLF4J
Logging with SLF4J and Logback

[Continue reading…] “How to configure Apache Log4j2 with Spring Boot”

Spring Bean Life Cycle – Callback Interface, Custom Method, Annotation, Aware Interface

Spring Bean Life Cycle is very important because in many applications, we want to create some operations before initializing a Bean or make some operations before bean’s destruction.

This tutorial introduce four ways to control life cycle events of a Bean.

[Continue reading…] “Spring Bean Life Cycle – Callback Interface, Custom Method, Annotation, Aware Interface”

Spring Bean Scope using Annotation – Singleton, Prototype, Request, Session, Global Session, Application

The tutorial shows you the way to implement Bean Scopes (Singleton, Prototype, Request and Session) using Annotation @Scope. Except Singleton and Prototype Scope, the others are only valid in the context of a web-aware Application.

Related Article: Spring Bean Scope – Singleton and Prototype

[Continue reading…] “Spring Bean Scope using Annotation – Singleton, Prototype, Request, Session, Global Session, Application”

Spring Bean Scopes – Singleton and Prototype

Spring Bean Scopes helps you control the scope of the objects which are created from bean definition. This approach is wonderful because you can choose the scope by configuring bean instead of working at Java class level.

The Spring Framework supports 7 scopes, but this tutorial introduces you 2 of them: singleton scope and prototype scope. The others will be discussed in next article.

[Continue reading…] “Spring Bean Scopes – Singleton and Prototype”

How to inject Collection in Spring

Spring supports us the way to inject Collection with type: List, Set, Map and Properties. So we can pass a bundle of direct data values or reference of beans to Collection Objects.

The tutorial shows you how to use XML configuration to do those things.

Related Post:
How to use Spring Factory Method to create Spring Bean

[Continue reading…] “How to inject Collection in Spring”

How to create a Windows Service for Spring Boot Application by Procrun

Procrun is a set of applications that allow Windows users to wrap (mostly) Java applications (e.g. Tomcat) as a Windows service. The service can be set to automatically start when the machine boots and will continue to run with no user logged onto the machine.

The tutorial will guide you how to create a Windows Service for Spring Boot Application by Procrun.

[Continue reading…] “How to create a Windows Service for Spring Boot Application by Procrun”