Category: Spring Boot

1. Introduction In today’s blog post we will look at how we can use the caching provider Ehcache in Spring Boot. Ehcache is an open source library implemented in Java for implementing caches in Java programs, especially local and distributed caches in main memory or on the hard disk. Thanks to the implementation of JSR-107, […]Continue reading

1. RestTemplate Introduction In today’s blog post we will have a look at Springs well-known rest client – the RestTemplate. The RestTemplate is the central class within the Spring framework for executing synchronous HTTP requests on the client side. Like Spring JdbcTemplate, RestTemplate is also a high-level API, which in turn is based on an […]Continue reading

In this article, we’ll to learn how to implement the service locator Design Pattern in Spring. We’ll begin with a brief introduction. Next, we’ll introduce an example that benefits from using the pattern. And finally, we’ll work through an implementation in Spring. Introduction: Service Locator Pattern When we begin working with the Spring framework, we run […]Continue reading

1. JdbcTemplate Introduction If we want to perform CRUD operations on a relational database the Spring ecosystem provides Spring Data JPA and Spring Support for JDBC. Spring Support for JDBC focuses on the JdbcTemplate class, which is internally based on the JDBC API of the Java SDK. Anyone who has ever worked with the JDBC […]Continue reading

Spring Framework 5 introduces WebClient, a component in the new Web Reactive framework that helps build reactive and non-blocking web applications. In web applications, a common requirement is to make HTTP calls to other services. Prior to Spring 5, there was RestTemplate for client-side HTTP access. RestTemplate, which is part of the Spring MVC project, […]Continue reading

When developing Spring Boot applications, you need to tell the Spring Framework where to look for Spring components. Using component scan is one method of asking Spring to detect Spring managed components. Spring needs the information to locate and register all the Spring components with the application context when the application starts. Spring can auto […]Continue reading

Introduction I’m quickly becoming a fan of using CircleCI for CI builds. I’m finding that CircleCI is a very powerful platform. Recently, I configured CircleCI to build a Spring Boot Microservice. The microservice was generated by JHipster. CircleCI is a online resource which uses Docker containers to run your CI builds. Since your build is […]Continue reading