How to use Criteria & Metamodel API with Spring Boot to create dynamic queries
Sometimes you may need to create your sql queries on runtime with some specification given by your client. In these cases, you may create many JPQLs …
Sometimes you may need to create your sql queries on runtime with some specification given by your client. In these cases, you may create many JPQLs …
It is crucial to capture long running method execution in your application (whether it is an API or traditional mvc application). You should also …
Spring provides reliable shutdown of the application using feature called Graceful Shutdown. With Graceful shutdown feature we can close the …
Some of the older versions of Spring boot supports Junit 4 (with Junit 5 dependencies as well). If you want to use Junit 5 in in your spring boot …
@RequestHeader annotation is used to bind a request header to a method argument in a controller. In other words, it allows us to read http headers in …
I was facing a challenge with running test cases that include async methods in my Spring Boot application. The test cases failed because the async …
There are 3 ways to change default running port in spring boot application: By default, the embedded server starts on port 8080. 1- Use Property files …
It is so easy to learn your spring boot version. To learn that you have to look at the following files (according to project tool you are using): If …
Integrating Google reCAPTCHA v3 with spring boot applications can greatly enhance security and protect against malicious activities, such as spam and …
Most probably you have encounter the following error, while waiting response from other services(for instance it could be payment response from the …
As developers, we often find ourselves faced with the challenge of managing multiple entities that share common attributes and behavior. By leveraging …
In this tutorial, we will integrate Spring MVC with gulp and webpack. As you know creating Spring MVC project with Thymelaef project is so easy. But …
Let’s say you have two entities which has many-to-one relationship and you want to paginate your query on the parent side with additional colums …
Almost every blog(s) on the Internet for caching operation in the Spring Boot are using @Cacheable, @CacheEvit, @CachePut vs… In this blog we …
To run spring boot application in a container. We should do the following steps: Create a jar package with maven or gradle (mvn clean install or mvn …
Do you want to know how to read specific properties file according to the environment variable in Spring boot? Let’s explore how to read …
Let’s quickly learn how to generate sitemap.xml endpoint for your spring boot project. We will create a sitemap controller to handle sitemap.xml …
Let’s learn how to create robots.txt file for your spring boot or spring mvc project. Having robots.txt file tells search engine crawlers, such …
In this quick tutorial, let’s learn how to catch all exception(s) in Spring Boot. And most probably you want to return customized exception when …
Let’s implement oauth2 practical implementation with Spring Boot using PostgreSQL and Thymeleaf. In this application: We will use PostgreSQL to …
Do you know the reason why redirect URL should be http://localhost:8080/login/oauth2/code/google when we setup Authorization Server in the …
In this article, we will implement a basic single sign on application using Spring boot. We will use Thymeleaf for html pages A single sign-on (SSO) …
In this post, we are going to learn what the oAuth2 is, how to use OAuth2 in Spring boot. We will start with why do we need a OAuth2, we will look at …
In this post, we are going to setup spring boot rest project with using JWT. we will also integrate the our spring boot application with the frontend …
In this tutorial, we are going to find location of your clients using spring boot and IP2Location and also we will look at how to update IP2Location …
In this post, let’s find out what is the CORS policy, how to implement in the Spring Boot and Spring Security, finally how to resolve most …
In this post, we are going to learn what CSRF(or XSRF) attack is, how to simulate csrf attack in spring and how to setup csrf protection in spring …
Recently I have encountered this error. And I can not send any request even I have setup corsConfiguration.setAllowedOrigins("*") . Response …
In this post, let’s find out what the Security Context is I am going to use the project that I have implemented in the previous post. Here is …
In this post, let’s implement two steps authentication mechanism. This will be similar to JWT authentication but instead of JWT I will use my …
Let’s look at the Filter Chain, more specifically AuthenticationFilter in the Spring Security. And also I am going to implement custom filter. …
In this post, I am going to answer to this question “what is the Authentication Provider” and I am going to implement a project includes …
In this post, let’s look at the what UserDetailsManager is, differences between UserDetailsService. And also I am going to implement a project …
In this post, I am going to use real database to check the user against the request(s). Github Link If you only need to see the code, here is the …
In these short series , I am going to dive into what Spring Security is, how Spring Security works. Most of the example application would be for web …
This is the second post for a short series of aspect oriented programming with the spring boot. In this post, I am going to implement a simple project …
In this post, we are going to look at what is AOP and how your spring application matches with AOP concepts using Spring AOP module. After that we are …