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 execute asynchronous query with Spring JPA and PostgreSQL | Spring Boot

In tradition approach, implementing Data Access Layer makes lots of boilerplate code. Spring Data provides us Spring JPA which supports the ways to write interface for repositories and custom finder methods. The implementation will be done automatically by Spring Framework.

The tutorial shows you how to execute asynchronous query with Spring JPA and PostgreSQL using Spring Boot.

Related articles:
Java 8 Streams
How to use Spring JPA MySQL | Spring Boot
How to use Spring JPA with PostgreSQL | Spring Boot
How to get streaming results with Spring JPA, Java 8 Stream and PostgreSQL | Spring Boot
@DataJPATest with Spring Boot

[Continue reading…] “How to execute asynchronous query with Spring JPA and PostgreSQL | Spring Boot”

How to get streaming results with Spring JPA, Java 8 Stream and PostgreSQL | Spring Boot

In tradition approach, implementing Data Access Layer makes lots of boilerplate code. Spring Data provides us Spring JPA which supports the ways to write interface for repositories and custom finder methods. The implementation will be done automatically by Spring Framework.

The tutorial shows you how to make streaming results with Spring JPA, Java 8 Stream and PostgreSQL using Spring Boot.

Related articles:
Java 8 Streams
How to use Spring JPA MySQL | Spring Boot
How to use Spring JPA with PostgreSQL | Spring Boot
@DataJPATest with Spring Boot

[Continue reading…] “How to get streaming results with Spring JPA, Java 8 Stream and 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 Spring Integration with Spring Boot

In the tutorial, JavaSampleApproach will show you how to build a simple Spring Integration with Spring Boot.

Related post:
How to use Spring Integration Http Inbound with Spring Boot

[Continue reading…] “How to start Spring Integration with Spring Boot”

How to use SpringMVC HandlerInterceptor with Spring Boot

Spring MVC HandlerInterceptor provides a mechanism to intercept requests: pre-processing & post-processing. In the Spring MVC HandlerInterceptor tutorial, JavaSampleApproach will guide you how to use HandlerInterceptor by a Logging sample.

[Continue reading…] “How to use SpringMVC HandlerInterceptor with Spring Boot”

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”

How to work with Spring Callable Controller

Spring Callable Controller is an asynchronized approach of Spring Requests with Servlet 3, it will help to scale a heavy system by releasing container threads while processing expensive tasks. In the How to work with Spring Callable Controller tutorial, JavaSampleApproach will guide you how to work with Spring Callable Controller.

Related Posts:
1. Spring Framework 4.3 New Feature RequestMapping: @GetMapping, @PostMapping, @PutMapping, @DeleteMapping
2. Spring MVC – @RequestMapping with Methods, Headers, Params, @PathVariable and @RequestParam

[Continue reading…] “How to work with Spring Callable Controller”

How to start Spring Async with Spring Boot

For scaling a heavy system, Java provides a mechanics for executing expensive jobs in background with Java Thread Pool & Future to manage the final results. Spring Framework makes it more easy with annotation @Async. In the How to start Spring Async with Spring Boot, JavaSampleApproach will guide you how to build asynchronized services with @Async & Spring Boot.

Related Posts:
1. How to create a Java Thread
2. Java Thread Pool – ExecutorService
3. Spring ThreadPoolTaskExecutor with Callable interface for concurrency programming
4. Java Future

[Continue reading…] “How to start Spring Async with Spring Boot”

How to integrate JQuery Ajax POST/GET & Spring MVC | Spring Boot

In this tutorial How to integrate JQuery Ajax POST/GET & Spring Boot Web Service, JavaSampleApproach will show you how to exchange data between Web client and Spring Boot Web Services.

Related Posts:
How to integrate Http Angularjs & Spring Boot
Spring Web MVC – Spring Form Submission | Spring Boot
Jquery Ajax POST-GET Nested Objects to SpringBoot server

[Continue reading…] “How to integrate JQuery Ajax POST/GET & Spring MVC | Spring Boot”

How to use Spring Batch Restartable Function

SpringBatch provides a restartable mechanics with a Job, in the How to use Spring Batch Restartable Function tutorial, JavaSampleApproach will present to you the principle of this function with SpringBoot.

Related Post:
1. How to configure Spring Batch Step for restart
2. How to start with Spring Batch using Spring Boot – Java Config
3. Spring Batch XML Config by Spring Boot
4. Spring Batch Job with Parallel Steps
5. How to import CSV data to PostgreSQL Database using Spring Batch Job

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

How to build SpringBoot MongoDb RestfulApi

In the tutorial, JavaSampleApproach will show you way to build a SpringBoot MongoDB RestfulApi.

Related Articles:
Spring MongoOperations to access MongoDB
How to use SpringData MongoRepository to interact with MongDB
How to access MySQL database with Spring Data Rest application
How to use HAL Browser with Spring Data Rest | SpringBoot + MySQL

[Continue reading…] “How to build SpringBoot MongoDb RestfulApi”

Spring Framework 4.3 New Feature RequestMapping: @GetMapping, @PostMapping, @PutMapping, @DeleteMapping

Spring Framework 4.3 has some Web improvements. In the article, JavaSampleApproach will introduce you about New Feature RequestMapping: @GetMapping, @PostMapping, @PutMapping, @DeleteMapping, and @PatchMapping.

Related Posts:
Spring MVC – @RequestMapping with Methods, Headers, Params, @PathVariable and @RequestParam
Kotlin Spring MVC RequestMapping RESTful APIs with @GetMapping, @PostMapping, @PutMapping, @DeleteMapping | SpringBoot Example

[Continue reading…] “Spring Framework 4.3 New Feature RequestMapping: @GetMapping, @PostMapping, @PutMapping, @DeleteMapping”

How to configure Spring RestTemplate Security

In the tutorial, JavaSampleApproach will guide you how to configure Spring RestTemplate Security.

Related post: How to use Spring RestTemplate client for consuming Restful WebService

[Continue reading…] “How to configure Spring RestTemplate Security”

How to use Spring JPA MySQL | Spring Boot

In tradition approach, implementing Data Access Layer makes lots of boilerplate of code. Spring JPA is a part of Spring Data, helps us improve our codes and reduce efforts for development and maintenance. Spring JPA supports us the ways to write interface for repositories and custom finder methods, the implementation will be done automatically by Spring Framework.

In the tutorial, JavaSampleApproach will show you way to use Spring JPA MySQL using Spring Boot.

Related articles:
How to use Spring JPA with PostgreSQL | Spring Boot
How to use Spring JPA MariaDB | Spring Boot
How to access MySQL database with Spring Data Rest application
Angular 4 + Spring JPA + MySQL example | Angular 4 Http Client – Spring Boot RestApi Server

[Continue reading…] “How to use Spring JPA MySQL | Spring Boot”