Search results for: JPA

What is Spring Batch? Spring Batch is a lightweight, broad batch framework that builds upon the characteristics of the Spring Framework that enables the development of robust batch applications, which plays a vital role in the daily operations of enterprise systems. Spring Batch provides many reusable functions that are necessary for processing records with large…

Read More Spring Batch Tutorial

In this blog post, you will learn the difference between @SpringBootTest and @WebMvcTest annotations. The main difference between the @SpringBootTest and @WebMvcTest annotations lies in the application context that they create. The @SpringBootTest annotation starts the full application context, which includes all the beans required for the application to function. On the other hand, the…

Read More Difference Between @SpringBootTest and @WebMvcTest

In this article, we will cover the basics of Aspect-Oriented Programming (AOP). You will learn how to use AspectJ to provide different AOP advices to Spring Boot applications to support cross-cutting issues like logging, profiling, caching, and transaction management and finally we will do a practical implementation to record user operations using Spring Boot AOP.…

Read More A guide to Spring Boot AOP to Record User Operations

This tutorial is a high-level overview of the Spring Web MVC framework. Below is a high-level diagram of how things work in a Spring MVC Web application built with Spring Boot.    Most online tutorials or books will show you a similar diagram that is designed around the Dispatcher Servlet. Because this Dispatcher servlet is…

Read More Spring Web MVC – Overview for Beginners

In this tutorial, you will learn to design and deploy the multi-container based Spring Boot application using Docker compose. To learn more about Docker, please check Docker Tutorials page. Overview In the previous tutorial, we learned how to Dockerize a simple Spring Boot-based application. As it was a small application we have handled each container…

Read More Docker Compose: Deploying Spring Boot Microservices

Spring Boot is a popular framework for building Java-based web applications. It provides a simple and efficient way to build, deploy and run Java applications quickly. In this tutorial, we’ll explore the framework’s basics, including its features, advantages over the Spring Framework, and how to get started with creating your first application using it. Whether…

Read More Spring Boot: Getting Started Guide

Testing Java with JUnit & Mockito This video course is for beginners and you do not need to have any prior Unit testing knowledge to enrol into this course. The course covers JUnit 5 basics as well as advanced topics. You will also learn to use another very popular testing framework for Java called Mockito.…

Read More My Video Courses

In this tutorial, you will learn how to create a custom password encoder in a Spring Boot application that uses Spring Security. Table of contents Create a Spring Boot project and add database connection properties, Add a User model, Create a User repository, Implement a custom PasswordEncoder, Create a service class that implements UserDetailService, Add…

Read More Custom Password Encoder in Spring Security

Multiple data source implementations are very crucial in instances where we want to secure the application from vulnerabilities such as a database failure. This will ensure that the application can still function even if part of the database went down. This tutorial will use student and course entities to demonstrate how multiple data sources can…

Read More Multiple Datasources in Spring Application

What do you want to learn today? Jersey & JAX-RS Recent Tutorials DTO to Entity and Entity to DTO Conversion Sergey Kargopolov Java | Jersey JAX-RS | RESTful Web Services | Spring Boot | Spring MVC Almost in every RESTful Web Service application, I have to do the DTO to Entity and then Entity to…

Read More Jersey & JAX-RS

Tutorials Spring Boot Tutorials Spring Cloud Tutorials OAuth 2 for Beginners Testing Spring Boot Web Services Jersey & JAX-RS Swift Video Tutorials RESTful Web Services with Spring Boot Testing RESTful Web Services Swift Flutter Video Courses for Beginners RESTful Web Services with Spring Boot and Spring MVC OAuth 2 in Spring Boot Applications Spring Boot…

Read More Start Here

In this Spring Security tutorial, you will learn how to use the @PreAuthorize annotation to secure method invocation. You can use the @PreAuthorize annotation to secure either method in a Controller class or a method in a service layer class. There are other useful method-level security annotations like the ones below. It is useful to…

Read More Spring Security @PreAuthorize Annotation Example

In this Spring Boot tutorial, you will learn how to implement User Authentication(User Login) functionality for your RESTful Web Service application. There is also a step-by-step video demonstration on how to do User Authentication available here. The user authentication functionality we are going to implement in this tutorial will work the following way: A user…

Read More User Authentication – Spring Boot, Spring Security, JWT

In this tutorial, I will share how to make the Spring Boot application display Hibernate SQL Queries. If you are learning about Hibernate, you might also be interested in the following tutorials: One-to-One Mapping Hibernate/JPA Using Spring Boot and MySQL One-to-Many Mapping Hibernate/JPA Using Spring Boot and MySQL Many-to-Many Relationship in Spring Boot Rest +JPA…

Read More Show Hibernate SQL Query in Spring Boot