Code Example
Spring Boot CRUD REST API Project Example
Spring Boot has REST support by providing default dependencies right out of the box. Spring Boot provides RestTemplateBuilder that can be used to customize the RestTemplate before calling the REST endpoints....
Code Example
How to Convert InputStream to String in Java
Very frequent situation: you have java.io.InputStream and you need to convert it in some way into a String.
There are several approaches to achieve this in Java, I'll show you the best...
Code Example
Java Optional – No More NullPointerException In Your Code
When writing code, the developer often can not know whether the necessary object will exist at the program execution time or not, and in such cases it is necessary to do...
Code Example
Java Scanner Example – Reading Input from Console
The java.util.Scanner class used for scanning text. java.util.Scanner parses primitive types and strings using regular expressions.
Here what you should know about Java Scanner:
Scanner breaks the input into...
AWS
Simple Java Spring Boot Application with DynamoDB
Today we’ll build a simple Spring Boot Application and integrate it with DynamoDB.
We’ll configure our Spring Boot application to use a local DynamoDB instance using Spring Data. We’ll create an example...
Code Example
Java Spring Scopes Explained
Java Spring framework has several different bean scopes. Today I'll explain the meaning of each Spring beanscope.
The scope of a bean defines the life cycle and visibility of that bean in...