Spring Framework provides JavaMailSender interface & Spring Boot provides auto-configuration for it. So in the tutorial, JavaSampleApproach will introduce how to configure JavaMailSender to send a gmail by a sample code.
Elasticsearch is a distributed, full-text search engine based on Lucene with JSON schema. In the tutorial, JavaSampleApproach will show you how to start SpringBoot ElasticSearch by sample code.
– Apache Solr – How to start Spring Data Solr with SpringBoot
Netflix Zuul is a proxy solution to forward requests to microservices. In the tutorial, JavaSampleApproach will show you way to configure SpringBoot Zuul with routing & filtering.
In the tutorial, JavaSampleApproach will show you way to create a SpringBoot XML REST Service.
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”
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.
Spring 4.3 provides a new @RequestAttribute annotation that helps us access to pre-existing global request attributes (outside the controller). Today we’re gonna look at how to get a
HttpServletRequest attribute which is created in an Interceptor using Spring @RequestAttribute annotation.
Spring 4.3 provides a new @SessionAttribute annotation that helps us access to pre-existing global session attributes (outside the controller). Today we’re gonna look at how to get a
HttpSession attribute which is created in an Interceptor using Spring @SessionAttribute annotation.
Spring Batch Late Binding provides a solution for late binding Job’s Parameters with Beans’ properties. In the tutorial, JavaSampleApproach will introduce Spring Batch Late Binding cleary by a sample project.
1. How to use Spring Batch Inheritance function
2. How to use Intercepting Job Execution in Spring Batch
3. How to start with Spring Batch using Spring Boot – Java Config
4. Spring Batch Partition for Scaling & Parallel Processing
In the tutorial, JavaSampleApproach will introduce about inheritance feature of Spring Batch: Inheriting from a Parent Job & Inheriting from a Parent Step.
– 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.
By default, the web application Context Path is “/”. This example shows you 2 ways to set Context Path in Spring Boot: by Java Code and by properties file.
In the post How to perform Form Validation with Spring Boot, we have already made a form validation. Today we’re gonna look at a way to create Custom Validation with that Form in Spring.
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.
Spring provides a cross-cutting concern solution for handling Java Excepion. So in the tutorial, JavaSampleApproach will guide how to use Spring Exception with: @ResponseStatus, @ExceptionHandler & @ControllerAdvice.
– How to handle Java Exception
– How to use @RestControllerAdvice – New Features of Spring Framework 4.3
Spring Data with Spring JPA supports the ways to write interface for repositories and custom finder methods. Pagination is so important in case we have many data records to show.
In this tutorial, we’re gonna look at the way to make paging and sorting results with Spring JPA and PostgreSQL using 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.
Related article: How to create Custom Validation in Spring
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.
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.