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.
– Apache Solr – How to start Spring Data Solr with SpringBoot
[Continue reading…] “How to start SpringBoot ElasticSearch using Spring Data”
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.
– Client Load Balancing with Spring Cloud Ribbon + Spring Boot
– Spring Cloud Centralized Configuration
[Continue reading…] “How to configure SpringCloud Zuul – Routing and Filtering | SpringBoot”
In the tutorial, JavaSampleApproach will show you way to create a SpringBoot XML REST Service.
[Continue reading…] “How to create a SpringBoot XML REST Service”
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 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”
Javadoc is the tool that can generate documentation for API in HTML format. In previous version of JDK, it’s HTML 4.01 – an old standard. JDK 9 Javadoc now supports to generate HTML5 markup, improves search capability and Doclint.
[Continue reading…] “Java 9 HTML5 Javadoc”
Internationalization Enhancements for JDK 9 include: Unicode 8.0, UTF-8 Properties Files and enabling CLDR Locale Data by Default.
[Continue reading…] “Java 9 Internationalization Enhancements”
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
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”
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”
In this tutorial, JavaSampleApproach introduces Java 9 Multi-Resolution Images, a new API that allows a set of images with different resolutions (width and height) to be encapsulated into only one single image.
[Continue reading…] “Java 9 Multi-Resolution Images”
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”
In this article, we’re gonna take a look at Java 9 Private Interface Method which helps us avoid duplicate code and keep encapsulation for interface.
[Continue reading…] “Java 9 Private Interface Method”
Java 9 provides an interactive REPL tool to test code snippets rapidly without a test project or main method. So we can learn or evaluate Java features easily. In this tutorial, we’re gonna look at how to use Java 9 JShell – REPL.
[Continue reading…] “Java 9 JShell – REPL”
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”
This article introduces new added methods of Java 9
An example with new @Deprecated annotation:
@Deprecated(since ="1.5", forRemoval = true)
[Continue reading…] “Java 9 @Deprecated Enhancements”
Java 9 Optional comes with some small useful improvements. In this tutorial, we’re gonna look at new added methods:
[Continue reading…] “Java 9 Optional Improvements”
Chain of Responsibility Pattern is a Behavioral Pattern in which, a Request is sent through a chain of handling Objects without knowing which Object will handle it. With Chain of Responsibility Pattern, we can avoid coupling the Sender of a request to received Objects and create a processing sequence automatically based on type of request.
[Continue reading…] “Chain of Responsibility Pattern in Java”
Decorator Pattern is a Structural Pattern in which, functionality can be added to an existing object without changing its structure.
[Continue reading…] “Decorator Pattern in Java”
Facade Pattern is a Structural Pattern in which, a set of interfaces is gathered into only one interface that Client can work easily and simply. Facade Pattern helps us to wrap complexities of components inside and lose coupling between Client and subSystems.
[Continue reading…] “Facade Pattern in Java”
Adapter Pattern is a Structural Pattern in which, an interface of a class is converted into another interface that Client expects to work. With Adapter Pattern, we can reuse existing code without changing it.
[Continue reading…] “Adapter Pattern in Java”
Java 9 Stream comes with some small useful improvements. In this tutorial, we’re gonna look at new added methods:
– Lambda Expressions
– Java 8 Streams
[Continue reading…] “Java 9 Stream Improvements”