Beginners guide for creating simple rest service using Spring Boot and controller - service - repository architecture - Part 1

 The main goal of this guide is to show you how to create rest service using Spring Boot and by implementing the Service Layer and Repository pattern.

Read more ...

How to iterate over java.util.Map

If you have map defined as for example HashMap:

Map<String, String> map = new HashMap<String, String>();

You can iterate through it using for loop on following way:

Read more ...

How to create CSR (Certificate Signing Request) using keytool?

If you already have keystore, you can skip step 1.

Step 1. Create keystore with private key in it.

keytool -genkey -alias server -keyalg RSA -keysize 2048 -keystore keystore.jks -dname "CN=p1, O=o1, L=Belgrade, ST=, C=RS"

How to iterate over java.util.Map

If you have map defined as for example HashMap:

Map<String, String> map = new HashMap<String, String>();

You can iterate through it using for loop on following way:

Read more ...