Java 9 Flow API example – Processor

In previous post, we have general knowledge about Reactive Streams and Java 9 Flow API Components and Behaviour. In this tutorial, we’re gonna look at an example that implements Publisher, Subscriber with Processor as a bridge for reactive programming.

Related Articles:
Java 9 Flow API – Reactive Streams
Java 9 Flow API example – Publisher and Subscriber
Java 9 FLow SubmissionPublisher – A Concrete Publisher

[Continue reading…] “Java 9 Flow API example – Processor”

How to configure Persistent Token Remember-Me authentication

Remember-me authentication is a solution for websites to remember the identity of a user between sessions. In the tutorial, JavaSampleApppoach will show you how to configure persistent token remember-me authentication with Spring Boot.

Related Articles:
How to configure Remember Me authentication by Hash-Based Token Approach
Spring Security – Config Security for Web MVC by Spring Boot

[Continue reading…] “How to configure Persistent Token Remember-Me authentication”

Java 9 Flow API example – Publisher and Subscriber

In previous post, we have general knowledge about Reactive Streams and Java 9 Flow API Components and Behaviour. In this tutorial, we’re gonna look at an example that implements Publisher and Subscriber for reactive programming.

Related Articles:
Java 9 Flow API – Reactive Streams
Java 9 Flow API example – Processor
Java 9 FLow SubmissionPublisher – A Concrete Publisher

[Continue reading…] “Java 9 Flow API example – Publisher and Subscriber”

Java 9 Flow API – Reactive Streams

Java 9 introduces Reactive Streams under java.util.concurrent.Flow that supports an interoperable publish-subscribe framework. In the tutorial, we’re gonna look at a general view of Reactive Streams and how it comes to Java 9 with some new Flow API Components.

Related Articles:
Java 9 Flow API example – Publisher and Subscriber
Java 9 Flow API example – Processor
Java 9 FLow SubmissionPublisher – A Concrete Publisher

[Continue reading…] “Java 9 Flow API – Reactive Streams”

How to configure Remember-Me authentication by Hash-Based Token Approach

Remember-me authentication is a solution for web sites to remember the identity of a user between sessions. In the tutorial, JavaSampleApppoach will show you way to configure remember-me by Hash-Based Token Approach (Cookie-based tokens) with Spring Boot.
s
Related Articles:
How to configure Persistent Token Remember Me authentication Approach
Spring Security – Config Security for Web MVC by Spring Boot

[Continue reading…] “How to configure Remember-Me authentication by Hash-Based Token Approach”

How to start SpringBoot ElasticSearch using Spring Data

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.

Related posts:
Apache Solr – How to start Spring Data Solr with SpringBoot

[Continue reading…] “How to start SpringBoot ElasticSearch using Spring Data”

How to configure SpringCloud Zuul – Routing and Filtering | 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.

Related articles:
Client Load Balancing with Spring Cloud Ribbon + Spring Boot
Spring Cloud Centralized Configuration

[Continue reading…] “How to configure SpringCloud Zuul – Routing and Filtering | SpringBoot”

How to deploy Spring Boot Web App War file to Tomcat Server with Maven build

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”

[Continue reading…] “How to deploy Spring Boot Web App War file to Tomcat Server with Maven build”

Java 9 Unified JVM Logging

Java 9 provides a common logging system for JVM components with extremely detailed level, an infrastructure to do the logging. With new command-line option -Xlog for all logging followed settings, Unified JVM Logging gives us a precise, easy-to-configure tool to do a root cause analysis of complex system-level JVM components.

[Continue reading…] “Java 9 Unified JVM Logging”

Java 9 TIFF Image I/O plugins

In earlier version of Java, Image I/O Framework javax.imageio provides a standard way to plug-in image codecs for some formats such as PNG and JPEG. But TIFF is still missing from this set. It was packaged in com.sun.media.imageio.plugins.tiff before. Java 9 TIFF Image I/O plugins has a new package called javax.imageio.plugins.tiff which is renamed from com.sun.media.imageio.plugins.tiff.

In this article, we’re gonna take a look at that package and test a simple example.

[Continue reading…] “Java 9 TIFF Image I/O plugins”

Java 9 CompletableFuture API Improvements – Delay and Timeout Support

To improve Java Future, Java 8 provides CompletableFuture which can execute some code whenever its ready. In this article, we’re gonna take a look at new Java 9 CompletableFuture API that supports delay and timeout.

[Continue reading…] “Java 9 CompletableFuture API Improvements – Delay and Timeout Support”

Java 9 Diamond Operator for Anonymous Inner Classes

Java 7 has a new feature called Diamond Operator which helps to make code more readable, but it is still limited with Anonymous Inner Classes. In this article, JavaSampleApproach will introduce Java 9 Diamond Operator that can simplifies code and improves readability.

[Continue reading…] “Java 9 Diamond Operator for Anonymous Inner Classes”

Java 9 try-with-resources Improvement

Java 7 introduces a new approach for closing resources by try-with-resources statement. After that, Java 9 try-with-resources makes an improved way of writing code. Now we can simplify our code and keep it cleaner and clearer.

Related post: Java 7 – try-with-resources Statement

[Continue reading…] “Java 9 try-with-resources Improvement”