Java 9 Module System

Java 9 Module System, which is developed under Project Jigsaw, comes to us with the specific goal: to provide reliable configuration and strong flexible encapsulation. That helps application developers, library developers, or Java SE Platform implementors more easilier create a scalable platform, make greater platform integrity, and improve performance. In this tutorial, we’re gonna take a look at Java 9 Module System in a summarized way.

[Continue reading…] “Java 9 Module System”

How to use Hibernate Lazy Fetch and Eager Fetch Type – Spring Boot + MySQL

In the tutorial, JavaSampleApproach will help you understand Hibernate Lazy Fetch Type and Eager Fetch Type by sample code with Spring Boot & MySql database.

Related articles:
How to configure Spring JPA One to Many Relationship – SpringBoot
How to start development with Hibernate – XML Mapping File Hibernate

[Continue reading…] “How to use Hibernate Lazy Fetch and Eager Fetch Type – Spring Boot + MySQL”

How to resolve Hibernate OutOfMemoryError problem – Hibernate Batch processing

When using Hibernate for saving a large number of entities to database, You can meet an OutOfMemoryException. The tutorial will show the case and resolve it with Hibernate Batch processing.

Related articles:
How to start development with Hibernate – XML Mapping File Hibernate

[Continue reading…] “How to resolve Hibernate OutOfMemoryError problem – Hibernate Batch processing”

How to configure Spring JPA One to One Relationship – SpringBoot

This tutorial will guide you through the steps of configuring Spring JPA One to One relationship with Spring Boot and MySql.

Related articles:
Spring JPA One to Many Relationship
Spring JPA – Many to Many relationship

[Continue reading…] “How to configure Spring JPA One to One Relationship – SpringBoot”

Java 9 Platform Logging API and Service

Java 9 defines a minimal logging API which platform classes can use to log messages, together with a service interface for consumers of those messages. In this tutorial, we’re gonna take a look at new Java 9 Platform Logging API and an example that implements LoggerFinder service which can route platform log messages to the logging framework for application logger instead of system logger.

[Continue reading…] “Java 9 Platform Logging API and Service”

How to start development with Hibernate – XML Mapping File Hibernate

Hibernate is an Java Object-Relational Mapping framework to map classes’ objects and database tables’s records. Hibernate provides API to save and select database’s records by Java objects. In the tutorial, JavaSampleApproach will show you way to start Hibernate by Java sample code.

[Continue reading…] “How to start development with Hibernate – XML Mapping File Hibernate”

Java 9 FLow SubmissionPublisher – A Concrete Publisher

JDK 9 provides a concrete Publisher named SubmissionPublisher that acts as a compliant Reactive Streams Publisher relying on drop handling and/or blocking for flow control. In this tutorial, we’re gonna take a look at SubmissionPublisher and an example that generates items for Subscribers.

Related Articles:
Java 9 Flow API – Reactive Streams
Java 9 Flow API example – Publisher and Subscriber
Java 9 Flow API example – Processor

[Continue reading…] “Java 9 FLow SubmissionPublisher – A Concrete Publisher”

How to configure Spring JPA One to Many Relationship – SpringBoot

This tutorial will guide you through the steps of configuring Spring JPA One to Many relationship with Spring Boot and MySql.

Related articles:
Spring JPA – Many to Many relationship
How to configure Spring JPA One to One Relationship – SpringBoot
Spring Data Rest – How to create a RestAPIs with JPA One-to-Many relational entities | SpringBoot + MySql + HAL Browser

[Continue reading…] “How to configure Spring JPA One to Many Relationship – SpringBoot”

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 configure JavaMailSender with SpringBoot

Spring Framework provides JavaMailSender interface & Spring Boot provides auto-configuration for it. So in the tutorial, JavaSampleApproach will introduce how to configure JavaMailSender to send a gmail by a sample code.

[Continue reading…] “How to configure JavaMailSender with SpringBoot”

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.

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

How to configure SpringBoot Zuul – Routing and Filtering

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.

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