Spring XD Option Module – Batch Job with PostgreSQL Datasource

Spring XD Option Module is an approach to expose metadata of each module for configuration. The tutorial will guide you how to configure PostgreSQL Datasource with Spring XD Annotation: @ModuleOption.

Related articles:
Spring XD Stream – PostgreSQL JDBC Sink
Spring XD Batch Job – How to Start

[Continue reading…] “Spring XD Option Module – Batch Job with PostgreSQL Datasource”

Inject Properties from Properties File using @Value Annotation

This tutorial shows you the way to inject Properties from Properties File using @Value Annotation with Java Configuration and @PropertySource.

You will also know how to use SourcesPlaceHolder and ConversionService for specific cases including: List/Arrays, special types (DateTime, Pattern), when a value that should be treated as null or a placeholder fails to resolve.

[Continue reading…] “Inject Properties from Properties File using @Value Annotation”

How to import CSV data to PostgreSQL Database using Spring Batch Job

Spring Batch is a powerful module to implement a batch process for tons of data conveniently.
This tutorial guide you how to import CSV Data to PostgreSQL Database using Spring Batch Job.

Related Articles:
How to start with Spring Batch using Spring Boot
How to use Spring JDBC Template for Postgres Database

[Continue reading…] “How to import CSV data to PostgreSQL Database using Spring Batch Job”

Spring XD Stream – How to start with Stream

Spring XD stream is a big data solution for how to ingestion. Each Stream is defined by 3 kinds of module: Source, Sink & Processor.

The tutorial will introduce Spring XD Stream.

Relate Post: Spring XD Batch Job – How to Start

[Continue reading…] “Spring XD Stream – How to start with Stream”

Spring MVC – @RequestMapping with Methods, Headers, Params, @PathVariable and @RequestParam

Creating RESTful web services is more comfortable and simpler when using Spring MVC Annotation.
The tutorial shows you how to use @RequestMapping with Methods, Headers, Params, @PathVariable and @RequestParam.
We will have an example which almost covers all @RequestMapping cases.

[Continue reading…] “Spring MVC – @RequestMapping with Methods, Headers, Params, @PathVariable and @RequestParam”

Spring MVC RESTful Web Service – difference between @Controller and @RestController

Creating RESTful web services is more comfortable and simpler when using Spring MVC Annotation.
The tutorial shows you overview of a traditional Spring MVC Controller and the Spring MVC RESTful Web Service Controller which are implemented in new Spring Framework, and difference between 2 annotations: @Controller and @RestController.

[Continue reading…] “Spring MVC RESTful Web Service – difference between @Controller and @RestController”

Spring Stereotype Annotations – Difference between @Service and @Repository

Spring provides some stereotype annotations, among them, @Service and @Repository are special cases of @Component for specific purposes. By annotating component classes with @Service, @Repository, your classes are more clear, thus, Spring will automatically scan and import those beans into the container, so we don’t need to define them using XML.

This tutorial show you overview of Repository Pattern & a Service Layer, as well as difference between @Service & @Repository.

[Continue reading…] “Spring Stereotype Annotations – Difference between @Service and @Repository”

Cloud DataLab & Google Spreadsheet for Visualizing data with BigQuery

Google Cloud Datalab is a powerful interactive tool for visualizing data of Google Cloud. It runs locally and connects to cloud services for exploring data.

We also use Cloud DataLab & Google Spreadsheet for Exploring data with Bigquery.

[Continue reading…] “Cloud DataLab & Google Spreadsheet for Visualizing data with BigQuery”