Administrator

Lokesh Gupta

A fun-loving family man, passionate about computers and problem-solving, with over 15 years of experience in Java and related technologies. An avid Sci-Fi movie enthusiast and a fan of Christopher Nolan and Quentin Tarantino.

Website: https://howtodoinjava.com

Github: https://github.com/lokeshgupta1981/

Twitter: @HowToDoInJAVA

LinkedIn: https://www.linkedin.com/in/lokeshgupta1981/

My Articles:

Java 21 String Templates

This Java tutorial discusses string templates in Java which is a new addition to the language in Java 21 as a preview feature.

Deploy a Dockerized Spring Boot App to AWS

By combining the portability and flexibility of Docker containers with AWS’s reliable and scalable infrastructure, we can take our Spring Boot applications to new heights. In this comprehensive guide, we’ll show exactly how to deploy a Dockerized Spring Boot app to AWS ECS from start to finish. 1. Introduction to …

Keycloak – Export and Import a Realm

Learn to export an existing realm as a JSON file from the Keycloak server, and also to import a previously exported realm file with clients, policies and users.

Getting Started with Keycloak on Docker

Learn the installation of the Keycloak authorization server as a docker container and different configurations for setting up the realm and testing the authorization token flow.

Java ConcurrentSkipListMap

Learn the Java ConcurrentSkipListMap and the major differences between ConcurrentSkipListMap and other Map implementations.

Intro to JWT (JSON Web Token)

JWT tokens are commonly used in authentication and authorization processes to prove a user’s identity or grant access to specific protected resources.

Vue.js CRUD Application with Spring Boot

Learn to create an application from scratch using REST APIs created with Spring boot and the user interface created with Vue.js. We will build a simple employee management application with Create, Read, Update, and Delete (CRUD) functionality. 1. Application Overview In the application, the home screen will present a list …

Deploying a Spring Boot App to Kubernetes (Minikube)

Deploying a Spring Boot application to Kubernetes can seem daunting at first, but with the right tools and knowledge, it can be a straightforward process. In this post, we will walk through the steps needed to deploy a dockerized Spring Boot application to Kubernetes (Minikube). 1. Prerequisites Before we begin, …

List of Zone Ids and Zone Offsets in Java

Learn about the available zone ids and zone offsets in Java 8 or later. These zone ids and offsets represent an instant/timestamp that is local to the specified timezone. 1. Using ZoneId and ZoneOffset Java 8 introduced new date and time APIs (JSR-310), including ZoneId and ZoneOffset. In Java, the …

Java – Convert Instant to LocalDateTime, LocalDate or LocalTime

Learn to convert a given Instant to LocalDateTime, LocalDate, or LocalTime instances in the current system timezone or a specified timezone in Java. 1. Difference between Instant and LocalDateTime An Instant is an instantaneous point on the time-line without any timezone information associated with it. Internally, it uses the system …

Spring Boot – Separate DataSource for Test, Dev and Prod

Learn to configure and use different DataSource in different environments (test, development, production etc.) using the Spring profile specific properties files, as well as Java configuration in a Spring boot application. 1. Introduction A production grade application is deployed and tested in different environments before finally released to the end-user. …

Check If a File Exists in Python

Learn to use the Python os.path and pathlib modules to check if a file exists at the specified path, and it is a regular file with examples.

Builder Pattern for Java Records

Learn to implement the builder pattern style fluent API and copy constructors in Java records for creating immutable records with examples.

Guide to RSocket using Spring Boot

Learn the RSocket protocol and implement communication models in Spring boot using reactive types such as Mono and Flux with examples.

About Us

HowToDoInJava provides tutorials and how-to guides on Java and related technologies.

It also shares the best practices, algorithms & solutions and frequently asked interview questions.