Functional Interfaces is one of the new important things of Java 8. In previous article, we had a little view about common use cases of Lambda Expression including Runnable and ActionListener. They are example of Functional Interfaces.
This tutorial helps you have deeper concept of Functional Interface, then some interfaces which are provided in java.util.function package such as Predicate and Function.
[Continue reading…] “Java 8 – Functional Interfaces”
Lambda expressions are new feature in Java 8. We now can represent one method interface by using an expression.
[Continue reading…] “Java 8 – Lambda Expressions”
Configure Spring Security for Spring MVC web application + SpringBoot
In the tutorial, JavaSampleApproach will show you how to configure Security for SpringMVC web application.
[Continue reading…] “Spring Security – Config Security for Web MVC by Spring Boot”
Abstract factory pattern is a Super-Factory of a group familiar factories. We can use it to expose API for integration code and hidden the logic implementation. Abstract Factory gives us a way to manage and decouple design in case Program has more than one Factory having the same Interface.
The tutorial will guide you a sample for how to program with Abstract Factory Pattern.
[Continue reading…] “Java Design Pattern – Abstract Factory Pattern”
Factory Pattern is a kind of Creation Pattern. Factory Pattern provides an interface for integration and hidden the complex implementation of related components.
The tutorial will help you create a factory pattern based on concept above.
[Continue reading…] “Java Design Pattern – Factory Pattern”
Singleton Pattern is a design pattern which you often meet in almost applications. Singleton Pattern provides a way to instantiate only one instance in an application context.
The tutorial introduces the design of Singleton Design Pattern and give many ways to create a Singleton Pattern in your application.
[Continue reading…] “Java Design Pattern – Singleton Pattern”
Docker is a new revolution for Linux container and it is a powerful tool for MicroService development.
The tutorial will guild you how to build a Spring Boot application and deploy it with Docker container.
[Continue reading…] “Spring Boot with Docker Container”
For scaling a Batch Job, Parallel Steps is one solution that bases on the business logic of application. We split the logic business in distinct responsibilities, and each step can be executed in parallelized flow. The tutorial will guide you how to configure parallel steps with Spring Batch.
– Spring Batch Partition for Scaling & Parallel Processing
– How to start with Spring Batch using Spring Boot – Java Config
[Continue reading…] “Spring Batch Job with Parallel Steps”
In application development, sometimes we should make different configuration for each environment. Spring Profiles provides a way to separate application configuration into some parts and they are only available in one or more specific environments.
This tutorial introduces ways to use Spring Profiles by @Profile Annotation or XML Configuration.
[Continue reading…] “Spring Profiles – @Profile Annotation and XML Configuration”
Neo4j is a highly scalable, native graph database. Spring Data supports Spring Neo4J for Graph Database: annotated POJOs, SD-Repositories and Neo4j-Template.
Tutorial will guides you how to work with Spring Neo4j.
[Continue reading…] “Spring Neo4J”
@Value Annotations vs Environment vs @ConfigurationProperties.
Spring provides some ways to inject properties from properties file. We have learned how to use them in 3 articles:
– @Value Annotation
This tutorial helps you have a comparison view covering those solutions.
[Continue reading…] “Inject Properties using @Value Annotations vs Environment vs @ConfigurationProperties”