Java 7 provides a new approach for closing resources with clean & clear code by try-with-resources statment. In the article, JavaSampleApproach will introduce the benifit when programming by try-with-resources statement.
Spring Data REST provides a mechanics for creating and retrieving an Object from Gemfire storage.
In the article, JavaSampleApproach will introduce you how to create a Gemfire RestfulAPI.
$http is an AngularJS service for communication with remote servers. In the article, JavaSampleApproach will show you way to integrate Http AngularJs and Spring Boot.
– How to configure AngularJs – SpringBoot
– How to integrate Angular 4 with SpringBoot Web App and SpringToolSuite
– MultipartFile – How to create Spring AngularJs MultipartFile application to download/upload files | SpringBoot + AngularJs + Bootstrap.
– AngularJs POST-GET Nested Objects to SpringBoot server
– AngularJs POST-GET LIST Objects to SpringBoot server
JavaSampleApproach will guide you how to read a text file by many approaches: BufferedReader, Java7 and Java8 with Java Read Text File
Gemfire is a memory caching solution for scaling software system, JavaSampleApproach will guide you how to create an Embedded Gemfire Application with SpringBoot.
Builder Pattern is under creational pattern for building a complex object in software development. JavaSampleApproach introduces reasons and how to program with Builder Pattern.
Spring provides powerful features to make controller tests by creating request and receiving response without need of deploying code to a web container. This tutorial introduces Spring Boot Unit Test for Spring MVC Controller.
Java Thread Pool is a performance solution for scaling system, so JavaSampleApproach will guide you how to work with Java Thread Pool by ExecutorService and Executors.
Java 8 Base64 provides a standard way to do Base64 encoding and decoding.
There are three types of Base64 encoding:
– Basic: Encoder produces a set of characters within A-Za-z0-9+/. Decoder rejects any character NOT mapped to A-Za-z0-9+/.
– URL: Encoder produces a URL or safe filename which is set of characters within A-Za-z0-9+_.
– MIME: Output is mapped to MIME friendly format.
Null reference causes many problems because it often denotes the absence of a value. Java 8 Optional is a new class that can help us handle these cases instead of checking null.
This article introduces Java 8 Date Time API with many example lines of code. So by reading each line, we can understand how to work with this feature.
In previous posts, we have concept of how to use CompletableFutures. This tutorial is about combining multiple CompletableFutures, it is one of the most important and useful abilities of Java 8 asynchronous processing.
Memory Consistency Errors are common problems with Multi Thread Programming. In the tutorial, JavaSampleApproach will introduce you about Java Synchronized, is one of the solution for resolving problems related with Consistency Errors.
Exception handling is important in software development, Java 8 CompletableFuture also provides methods to handle errors when they occurs.
Java 8 multithreading programming has an important feature named CompletableFuture.
In previous post about Java Future, we have the concept of a Future object, which can help us make something done while waiting for other things. However, although we can inspect Future objects to see if they’re done, what if we wanna execute some code whenever its ready? We still have to wait until the result is available.
CompletableFuture meets the requirement, and more than that.
In the article, JavaSampleApproach will introduce you about Queue interface in Java and give you sample for practice.
In multithreaded programming, Java Future with Callable is very important for tasks which we want to know status and get the returned object.
This article give us an example for how to work with Future and Callable inside.
In the article, JavaSampleApproach will introduce about Programmatic Flow Decisions in Spring Batch.
Related Post: Spring Batch
In the post, we guide how to customize AuthenticationProvider for SpringSecurity web application.
In the tutorial, JavaSampleApproach will provide all most of solution for find the n-th Fibonacci number with Java statements: for, do while, while and recursion implementation.