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 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 convert String to Int (Integer) & Int (Integer) to String

In the tutorial, JavaSampleApproach will guide you how to convert String to Int (Integer) & vice versa.

[Continue reading…] “How to convert String to Int (Integer) & Int (Integer) to String”

Java 8 – How to convert List to Map & Map to List

In the tutorial, JavaSampleApproach will guide you How to convert List to Map (Map to List) with Java 8.

Related Posts:
1. Java 8 – Lambda Expressions
2. Java 8 – Functional Interfaces
3. Java 8 – Method References

[Continue reading…] “Java 8 – How to convert List to Map & Map to List”

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 guide you how to upload MultipartFile with Spring Boot.

Related posts:
MultipartFile – SpringBoot + JQuery Ajax + Bootstrap.
MultipartFile – SpringBoot + AngularJs + Bootstrap.

[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:
1. How to integrate Http Angularjs & Spring Boot
2. Spring Web MVC – Spring Form Submission | Spring Boot

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

How to transfer an Image with RestfulAPI – Image RestfulApi

Exchange Images between Client & Server is a common problem in programming. So in the tutorial: How to transfer an Image with RestfulAPI – Image RestfulApi, JavaSampleApproach will guide you how to build a restful Api for exchanging images with Spring Boot & Spring RestTemplate & Java8-Base64

Related posts:
1. How to use Spring RestTemplate client for consuming Restful WebService
2. How to use Java 8 Encode (Decode) an Image to Base64

[Continue reading…] “How to transfer an Image with RestfulAPI – Image RestfulApi”

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 use Java 8 Encode (Decode) an Image to Base64

For some purpose like transfering an image through RestfulAPI or saving an image to a DataBase, We need Encoder (Decode) the image to Base64. In the tutorial, JavaSampleApproach will guide you how to use Java 8 for converting.

Related post: Java 8 Base64

[Continue reading…] “How to use Java 8 Encode (Decode) an Image to Base64”

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”