Tag: java

One-to-One Relationship in JPA

Last updated on 17th August 2022 by H Sayyed | Category: Spring Boot

In this tutorial, we’ll how to implement one to one relationship mapping in JPA with database table and schema example. There might be different use case to implementing one to one relationship. For example, one user will have only one user profile. Lets say we are developing a User Management System and we want to […]

Read more 

HttpSession in Spring Boot Session Management

Last updated on 2nd September 2022 by H Sayyed | Category: Spring Boot

In this tutorial, we will learn about Http Session in Spring Boot and how to implement it in a project. Learn set session attributes and get attributes. How to use User session and authentication session. Learn session management and how to use it according to our need and purpose. Lets get started. A Simple Project: […]

Read more 

Solve WebSecurityConfigurerAdapter Deprecated

Last updated on 16th August 2022 by H Sayyed | Category: Spring Boot

Getting deprecated warning or issue when extends WebSecurityConfigurerAdapter in Spring Boot. This is because WebSecurityConfigurerAdapter is no longer recommended. The alternative for this is SecurityFilterChain class. In this tutorial, you will learn how to remove or resolve the WebSecurityConfigurerAdapter deprecated warning and instead implement SecurityFilterChain in your spring boot application. Bellow are the some warning […]

Read more 

Login and Register Example in Spring Boot 2.7.2

Last updated on 16th August 2022 by H Sayyed | Category: Spring Boot

In this tutorial, you will learn how to create Login and Register functionality in spring boot. You can use this tutorial with different databases like PostgreSQL or MySQL and build tools like gradle or maven. This tutorial is implemented on Maven, PostgreSQL, SecurityFilterChain and Standard Folder Structure. You will find how to use User Role […]

Read more 

How to use Fragments in Thymeleaf

Last updated on 12th August 2022 by H Sayyed | Category: Spring Boot

In this tutorial, you will learn how to create reusable html / javascript component in Thymeleaf. It is always good to keep our code DRY (Don’t Repeat Yourself), so making some common reusable parts for site where we can use it in different pages or files. Learn more about thymeleaf. Thymeleaf is a template engine. It […]

Read more 

Use Thymeleaf and Bootstrap 5 Template Engine in Spring Boot

Last updated on 11th August 2022 by H Sayyed | Category: Spring Boot

Do you want to use Template Engine in Spring Boot Project – Thymeleaf is the best. Thymleaf is java library to which communicate between backend (java) and frontend (HTML, Js). It is server-side Java template which helps us to create beautiful HTML / XML templates. Thymeleaf can process six types of templates are as follows: […]

Read more 

Spring Boot Project – Code & Folder Structure and Best Practices

Last updated on 11th August 2022 by H Sayyed | Category: Spring Boot

If you are working on projects, it is very important to have proper folder structure and files. This is very important and we should do this in very initial phase of project. In this blog, will explain you the best standard practice and files for spring boot project. Learn how to integrate standard ways and […]

Read more 

How to Connect PostgreSQL Database in Spring Boot Project

Last updated on 9th August 2022 by H Sayyed | Category: Spring Boot

PostgreSQL is a great database to use with Spring Boot Project. It is fast, reliable and convenient to use with Spring Boot. In this blog, you will learn how to integrate postgres database in spring boot project. How to edit and add configuration in application.properties file for connecting postgres database with spring boot project. I […]

Read more 

Initial Project Setting – Starter Template for Spring Boot Project

Last updated on 11th August 2022 by H Sayyed | Category: Spring Boot

Developing your first Spring Boot application or starting from scratch. This blog is a great boilerplate or starter template for your spring boot project. Learn how to set up your project using the standard folder structure and files. You will learn how to setup your Spring Boot project using standard settings, folder structure. Learn how […]

Read more