How to deploy Spring Boot Web App War file to Tomcat Server with Maven build

The tutorial is a guide to traditional deployment problem: “How to create a Spring Boot Web App War file with Maven then deploys it on Tomcat server”

[Continue reading…] “How to deploy Spring Boot Web App War file to Tomcat Server with Maven build”

Spring Batch Partition for Scaling & Parallel Processing

For Scaling & Parallel Processing, Spring Batch provides various solutions: Multi-threaded Step, Parallel Steps, Remote Chunking of Step & Partitioning a Step. In the tutorial, JavaSampleApproach will introduce Partitioning a Step cleary by a sample project.

Related articles:
Spring Batch Job with Parallel Steps
How to use Spring Batch Late Binding – Step Scope & Job Scope

[Continue reading…] “Spring Batch Partition for Scaling & Parallel Processing”

How to use Spring Batch Inheritance function

In the tutorial, JavaSampleApproach will introduce about inheritance feature of Spring Batch: Inheriting from a Parent Job & Inheriting from a Parent Step.

Related post:
How to use Intercepting Job Execution in Spring Batch

[Continue reading…] “How to use Spring Batch Inheritance function”

How to use Intercepting Job Execution in Spring Batch

For Intercepting Job Execution feature, Spring Batch provides an interface called JobExecutionListener to notify events in a Job lifecycle. So in the tutorial, JavaSampleApproach will guide how to configure Intercepting Job Execution with JobExecutionListener.

Related Posts:
1. How to start with Spring Batch using Spring Boot – Java Config
2. Spring Batch XML Config by Spring Boot
3. How to use Spring Batch Inheritance function

[Continue reading…] “How to use Intercepting Job Execution in Spring Batch”

How to use @RestControllerAdvice for handling Exception with RestfulApi – New Features of Spring Framework 4.3

We had discussed about @ExceptionHandler, @ResponseStatus, @ControllerAdvice in How to use Spring Exception Handler for SpringMVC: @ExceptionHandler, @ResponseStatus, @ControllerAdvice. In the tutorial, JavaSampleApproach will guide to how to use a new feature of Spring Framework 4.3: @RestControllerAdvice.

[Continue reading…] “How to use @RestControllerAdvice for handling Exception with RestfulApi – New Features of Spring Framework 4.3”

How to change logging level with the MVC endpoint – new Actuator Loggers Endpoint | Spring Boot

Spring Boot 1.5.1 provides some new features. Among them, we have a new actuator loggers endpoint, which helps us to view and change logging level of application with the MVC endpoint.

This tutorial shows you the way to do this with http GET/POST request.

[Continue reading…] “How to change logging level with the MVC endpoint – new Actuator Loggers Endpoint | Spring Boot”

How to perform Form Validation with Spring Boot

We have ever known that JavaScript can validate a Form on Client side, and this tutorial helps you to perform Form Validation on Server side.

Related article: How to create Custom Validation in Spring

[Continue reading…] “How to perform Form Validation with Spring Boot”

How to start with JSP page and static resource in Spring Boot

In Java Web Application Development, JSP page and static resource (css file, javascript file) are two of the most important thing to start. This tutorial shows you how to embed them into a Spring Boot application.

[Continue reading…] “How to start with JSP page and static resource in Spring Boot”

How to use Spring Integration Http Outbound Gateway for Polling a http end point with GET method

Spring Integration provides Http Outbound Components for polling a Http Endpoints with: Http Outbound Gateway & Http Outbound Adapter.
Http Outbound adapter: just send requests to an http endpoint.
– But Http Outbound gateway: send requests to an http endpoint then return responses.
In the tutorial, JavaSampleApproach will guide you how to poll a http end point with Get request by Http Outbound Gateway.

Related Posts:
1. How to use Spring Integration Http Inbound with Spring Boot
2. How to start Spring Integration with Spring Boot

[Continue reading…] “How to use Spring Integration Http Outbound Gateway for Polling a http end point with GET method”

How to define template for multipage with Apache Tiles in Spring Boot

In the previous post, we have started with Apache Tiles. We know the way to define page fragments (each fragment as a tile) and combine them into a larger page (as a root with many tiles).

This tutorial introduces a way to define template for multipage with Apache Tiles in Spring Boot.

[Continue reading…] “How to define template for multipage with Apache Tiles in Spring Boot”

How to start with Apache Tiles in Spring Boot

Apache Tiles allows us to define page fragments (each fragment as a tile) which can be combined into a larger page (as a root with many tiles). They help to reduce duplication of common content, so that we can make a series of reusable templates more easier.

This tutorial shows you how to start with Apache Tiles in Spring Boot.

[Continue reading…] “How to start with Apache Tiles in Spring Boot”

How to use Spring Security JDBC Authentication with MySQL & Spring Boot

In the tutorial, JavaSampleApproach uses MySQL & Spring Boot to guide you how to develop a Spring Security JDBC for Authentication.

Related Articles:
How to use Spring Security JDBC Authentication with PostgreSQL & Spring Boot
Spring Security – Config Security for Web MVC by Spring Boot
Spring Security – Customize Login Handler
Spring Security Customize Logout Handler
Spring Security – Customize Authentication Provider

[Continue reading…] “How to use Spring Security JDBC Authentication with MySQL & Spring Boot”

How to use Spring Security JDBC Authentication with PostgreSQL & Spring Boot

In this tutorial, JavaSampleApproach uses PostgreSQL & Spring Boot to develop a Spring Security JDBC for Authentication.

Related Articles:
How to use Spring Security JDBC Authentication with MySQL & Spring Boot
Spring Security – Config Security for Web MVC by Spring Boot
Spring Security – Customize Login Handler
Spring Security Customize Logout Handler
Spring Security – Customize Authentication Provider

[Continue reading…] “How to use Spring Security JDBC Authentication with PostgreSQL & Spring Boot”

How to configure Spring Batch Step for restart

In How to use Spring Batch Restartable Function, we had discussed about how to restart a Job. Today, JavaSampleApproach will guide you how to use additional configuration for step in case restart a Batch Job.

Related articles:
1. How to use Spring Batch Restartable Function
2. Spring Batch XML Config by Spring Boot

[Continue reading…] “How to configure Spring Batch Step for restart”

How to use Spring Batch Tasklet

Spring Batch provides the Tasklet interface, to process a single task, such as clean or init resources before or after any step running. In the tutorial, JavaSampleApproach will guide you how to use Spring Batch Tasklet.

Related Posts:
How to start with Spring Batch using Spring Boot – Java Config
Spring Batch XML Config by Spring Boot
Spring Batch Job with Parallel Steps
Spring Batch – Programmatic Flow Decision
How to import CSV data to PostgreSQL Database using Spring Batch Job
Spring XD Option Module – Batch Job with PostgreSQL Datasource
How to use Spring Batch Restartable Function

[Continue reading…] “How to use Spring Batch Tasklet”

@DataJPATest with Spring Boot

Unit Test is so important in Software Development. Spring Boot provides @DataJpaTest annotation to make the writing test for JPA applications more simpler.

This tutorial shows you how to apply @DataJpaTest with TestEntityManager.

Related article:
How to use Spring JPA MySQL | Spring Boot
UnitTest – Maven skip test with SpringBoot
Spring Boot Unit Test for Spring MVC Controller

[Continue reading…] “@DataJPATest with Spring Boot”

How to use Spring Integration Http Inbound with Spring Boot

In the tutorial, JavaSampleApproach will guide you how to use Spring Http Inbound with Spring Boot.
Related Post:
How to start Spring Integration with Spring Boot

[Continue reading…] “How to use Spring Integration Http Inbound with Spring Boot”

How to start with Spring Cloud Centralized Configuration

Spring Cloud provides an excellent mechanics to refresh all configured properties of a Spring Bean by @RefreshScope. So in the tutorial, JavaSampleApproach will introduce way to config Spring Cloud Centralized Configuration and the benifits of @RefreshScope.

[Continue reading…] “How to start with Spring Cloud Centralized Configuration”

How to upload MultipartFile with Spring Boot

Upload files to Servlet containers, application need register a MultipartConfigElement class. But Spring Boot makes it more easy by automatically configure it. In How to upload MultipartFile with Spring Boot tutorial, JavaSampleApproach will show you how to upload MultipartFile with Spring Boot.

Related posts:
MultipartFile – SpringBoot + JQuery Ajax + Bootstrap.
MultipartFile – SpringBoot + AngularJs + Bootstrap.
Angular 4 – Upload/Get MultipartFile to/from Spring Boot Server
Angular 4 – Upload/Get Images to/from Spring Boot Server

[Continue reading…] “How to upload MultipartFile with Spring Boot”

How to convert Java Object into/from XML – with Castor & Spring Boot

In the tutorial How to convert Java Object into/from XML, JavaSampleApproach will introduce way to Marshalling & Unmarshalling by an open source XML binding framework Castor with SpringBoot project.

Related Posts:
1. Gson to convert Java Object to/from Json
2. Jackson to convert Java Object to/from Json String

[Continue reading…] “How to convert Java Object into/from XML – with Castor & Spring Boot”