Category: Spring Boot

The Need for Spring Boot Docker Layers If you follow my work, you know I’m a big fan of using Docker. As a software engineer at Velo Payments, I use Docker on a daily basis. Our architecture is primarily Spring Boot Microservices, deployed in Docker containers. This architecture gives us a tremendous amount of flexibility […]Continue reading

When you start a Spring application, the Spring Framework creates beans for you. These Spring beans can be application beans that you have defined or beans that are part of the framework. When the Spring Framework creates a bean, it associates a scope with the bean. A scope defines the runtime context within which the […]Continue reading

A common question I get is “What is the best UI to use with a Spring Boot?” UIs, also known as “User Interfaces” come in many different flavors. The UI application might be a desktop application writing in Java Swing, FX, or some other technology. The UI application could also be a mobile application written […]Continue reading

Should I Use Spring REST Docs or OpenAPI? Recently, I was asked which is better to use. Spring REST Docs or OpenAPI. From the perspective of generating documentation for your APIs, you may think these two options are effectively the same thing. But, it’s not exactly an apples to apples comparison. These are significantly different […]Continue reading

Project Lombok is a Java library tool that generates code for minimizing boilerplate code. The library replaces boilerplate code with easy-to-use annotations. For example, by adding a couple of annotations, you can get rid of code clutters, such as getters and setters methods, constructors, hashcode, equals, and toString methods, and so on. This is Part […]Continue reading

Introduction In this post, we are going to write about Project Lombok, a must-have tool for every Spring programmer. Lombok is a Java library, that enhances programmer productivity, by providing several helpful annotations. It makes classes shorter and frees programmers from writing much boilerplate code. After reading this tutorial, we will be able to setup […]Continue reading

Enterprise Spring applications typically need to run in multiple environments. For example, development, testing, staging, and production. Each such environment has its own set of settings. For example, you might be using an embedded H2 database for development but an enterprise-grade Oracle or MySQL database for production. So the data source and connection configurations for […]Continue reading

In this post, I’ll explain how to work with Autowiring In Spring First, we’ll begin with a brief introduction about Autowiring. Then, we’ll look at the different modes of Autowiring using XML configuration. Finally, we’ll look at @Autowired annotation with its different modes. Introduction Spring provides a way to automatically detect the relationships between various […]Continue reading