How to Register Spring Cloud with Consul Service Discovery

One of the main component of micro service architecture is service discovery (SD). So far in this blog I mentioned two tools for service discovery, which are Eureka and Consul. But if you may notice, whenever I used spring-cloud framework, I always choose Eureka. On the other hand, I pick consul when I talked about Golang.

How to Setup Micrometer with Prometheus in Spring Boot 1.5

Overview In this article, I will revisit a little bit my old article, but still valid, regarding monitoring your services. As you can see in my previous article, I wrote about monitoring service in Go […]

How to Configure HikariCP in Spring Boot Application

Overview In Java world, when it comes to database connectivity, there are two main approaches to deal with. First one is direct JDBC connection by using DriverManager. The other one is by using data source. […]

How to Import Signed Certificate into Java Keystore

Overview In this short blog post, I will explain how to import certificate into Java Keystore. This steps is useful whenever you need to access HTTPS from JVM. Export the certificate from your browser as […]

Basic Usage of Functional Interface in Java 8


Introduction After couples of Golang articles, I want to bring something different in this article. I want to talk about Java 8 features, which is functional interfaces. This feature comes up in 8th edition due […]

Document Your REST API using Spring Boot and Swagger

Overview As a developer, you considerably have two main tasks while developing the system. One part is coding itself. Of course, when I say coding, it means code and testing (I would say a TDD […]

Spring Boot: Encrypt Property Value in Properties File

Overview During my experiences working with Java, there are must be cases that I have to use properties files in order to store configurable parameter. For example, folder location for storing temporary files or wsdl […]

Securing Spring Boot REST API – CORS

Introduction In today’s IT architecture world, most of the web applications are invoking REST API to interact with backend system. So if you have experiences on developing a web application using Javascript, or XHR precisely, and you are dealing […]

How to Deal with Java 8 Stream API (Cont.)

Well, well. It seems I post faster that I thought regarding the additional Stream API functionalities. Soon after I published the stream how-to, a friend of mine came and gave me a feedback, or request […]

How to Deal with Java 8 Stream API

Introduction I’ve been in Java world since its 1.2.1 version. And I’ve been using all their major release version, until 8.0 recently. Therefore, I have noticed a couple game changers in several releases. Well, take […]