Capture long running method execution in Spring Boot using annotation
It is crucial to capture long running method execution in your application (whether it is an API or traditional mvc application). You should also …
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 …
git cherry-pick is useful command to pick specific commit or multiple commits from another branch and merge it to another branch(or we can say that …
Git is a tool for keeping track of changes in computer programs. It’s free to use and lots of people in the software field use it. Now, …
In this long blog, we are going to improve our git knowledge. I will try to explain the some concepts behing the basic things in git. Writing perfect …
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 …
Validating objects is crucial to ensure data integrity and prevent errors in subsequent layers of the application. While the @Valid annotation is …
As developers, we often find ourselves faced with the challenge of managing multiple entities that share common attributes and behavior. By leveraging …
Let’s assume that you have the following message template in which clients send the text with the correct parameter. Here is the template: …
Sometimes your entity might need store nested data structures such as Map<String, Map<String, String> or list of list etc.. If you want to …
Jackson is a popular Java library for working with JSON. Even it is easy to use, when converting a JSON string to a generic Java class, such as …
After careful consideration, I have decided to move my GitHub page(https://mehmetozanguven.github.io) to my own domain, mehmetozanguven.com. This has …
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 …
This mini tutorial is especially for backend developers who implement also frontend part of the application inside the one package. Today, gulp seems …
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 …
Scene This is the one of the fundamental classes in JavaFX A Scene represents the content area of window (not include the window’s border and …
We can use CSS(Cascading Style Sheets) to change visual appearance of our JavaFX program. Anything that can be done with CSS can also be done with …
GridPane Layout children nodes in rows and columns Rows and columns are numbered, starting from zero. Each rows and columns have not the same width …
BorderPane BorderPane can be useful for displaying one large central component with four smaller components at left, top, right and bottoms Note you …
In this blog post, let’s talk about laying out the components in the JavaFX. We need a pre-defined layout solution because computing the …
If you are going to draw something on the screen and handle some mouse event, then you can only use MouseEvent listener and AnimationTimer …
In JavaFX, events are represented by objects. When an event occurs, system collects all the information relevant to the event and construct an object …
The screen of a computer is a grid of little squares called pixels. The color of each pixel can be set individually, and drawing on the screen just …
Color Computer color uses an RGB color system which means that color on the a computer screen is specified by three numbers called color components, …
GUI programs are different from the traditional program that you have encountered. GUI programs are event-driven which means that these programs …
Adding robots.txt and/or sitemap.xml can be cumbersome for the modern javascript framework such as VueJs, React or Angular etc.. In this short blog, I …
Kadane’s algorithm could be a good solution to find maximum subarray in the given list. First let’s describe the maximum subarray problem. …
Instead of running MongoDB locally, we can easily run with Podman. Here are the basic steps you should follow: Pull the latest images podman pull …
You want to add & use simple cache in your application via hash map, but also you want your cache to remove automatically expired …
Like people, computers can multitask. They can be working on several different tasks at the same time. A computer that has just a single central …
In this article, we are going to dive into the what is the optimal stopping and we are going to write practical implementation with Java. First, …
Recently, I had to listen kafka consumer log to identity bug I have found in my web application. But listening kafka consumer logs via console output …
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 …
Instead of running postgresql locally, we can easily run with Podman. Here are the basic steps you should follow. Search available Postgres Images You …
In this one-shot tutorial, we are going to learn what Podman is, how to use it, the differences between Docker and Podman and more.. What is Podman? …
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 …
Even we have Java 17 version right now, industries still are using Java 8 & 11 even old ones using Java 6. Also many of these industries are using …
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 …
Before diving into the podman or docker itself, we should first know how to create dockerfile. Because writing a Dockerfile is the first step to …
Recently, I decided to learn containers (specifically Podman) to simply run my applications in an isolated environment. I can directly jump into the …
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 …
Recently, I needed to create map on my project and to do that I had to learn Leaflet. After adding to the leaflet to my project, I think it is good to …
In this article, we are going to learn lifecycle events in the JPA. As of the most application we will have date_created and last_modified column to …
In this article, we will learn what is the JPQL(The Java Persistence Query Language) and how to use it. What is the JPQL The Java Persistence query …
In this article, we are going to discuss what is the entity manager in the JPA and also learn the basic operations in the entity manager How to Obtain …
In this article, we are going to look how to represent the inheritance relationship in the JPA and how to use @MapperSuperclass annotation Github Link …
In this article, we are going to learn how to create relationship using @Embeddable & @Embedded object . @AssociativeOverride is used to override …
In this post, we are going to learn how to create many-to-many relationship in JPA. Github Link If you only need to see the code, here is the github …
In the OneToMany setup, Many sides must have the foreign key and it is the owner of the relatonship Github Link If you only need to see the code, …
In this article, we are going to learn how to construct a one-to-one relationship between entities in the JPA and when to use Cascade operation Github …
In this article, we are going to find out how to create composite keys in JPA. Composite key is the key which composed of multiple columns. Github …
In this post, we are going to learn when and how to use embaddable object in Java and JPA. Github Link If you only need to see the code, here is the …
In this post, we are going to learn @Enumarated and @Temporal annotations, how to store enums as ordinal and string and when to store enum types to …
In this post, we are going to find out “what are the options to provide automatic Id generation instead of setting manually”. We will look …
In this series, we are going to learn the JPA fundamentals and we are going to use one of its implementation Hibernate. Before diving into the series, …
Check Session If you want to list the current session for your database(s), you can use the following sql query: SELECT * FROM pg_stat_activity WHERE …
In this post, we are going to find out how to backup postgresql database with pg_dump utility. What is the pg_dump utility PostgreSQL provides the …
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 …
Recently I have encountered this error. Problem is that: user that runs nginx service has no permission to access /var/lib/nginx/tmp file. Example: …
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 …
This error might releted to your Nginx configuration(at least problem was the nginx for me) After enable the SSL connection and try to connect from …
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 …
Modern Web Mimarisi Yazılım geliştiriciler olarak günümüzün çoğunu kod yazarak geliştiriyoruz. Kimimiz kendi projesini geliştirirken, kimimiz …
In this post, we are going to learn Regex expression in one blog Let’s start with defining what is Regex or Regex expression. What is Regex? …
In this post, I am going to read the log files from the application that I created in previous post. Here is the github link and also previous post …
In this post, I am going to explain, how Flink starts itself, and what happens when you submit your job to the Standalone Cluster setup Standalone …
In this post, I am going to explain “what is state backend”, “which options do we have for state backend” , “how to configure state backend for your …
In this post, I will create simple stream job and submit the job to the flink cluster. You can find the project in my github repo. This is the second …
In this post, we will look at the log files (both for TaskManager and JobManager) and try to understand what is going on Flink cluster. Actually this …
In this post, we are creating simple Flink cluster own local machine. Before diving into creating cluster, configuration and etc.. let’s summarize …
In this post, I am going to explain DataStream API in Flink. You may see the all my notes about Apache Flink with this link When we look at the Flink …
In this post, I am going to explain “Components of Flink”, “Task Execution”, “Task Chaining”, “Data Transfer”, “Credit-Based Flow Control”, “State …
In this post, I am going to explain some terms about stream processing and also terms used in Apache Flink You may see the all my notes about Apache …
In this post, I will try to explain what is Apache Flink, what is used for, and features of Apache Flink. You may see the all my notes about Apache …