Spring Tutorial

How to disable first option in select drop in spring form

disabled=”disabled” Is used to disable the first options in the select dropdown in spring form below is the example <sf:select class=”select form-control-lg” path=”type”> <option selected=”true” disabled=”disabled”>Select Leave Type</option> <sf:option value=”CL” label=”CL”/> <sf:option value=”PL” label=”PL”/> <sf:option value=”SL” label=”SL”/> </sf:select> Disable input into the spring form readonly=”true”An attribute will disable any input field into the spring form. …

How to disable first option in select drop in spring form Read More »

RestAPI token authentication in spring boot using JWT and Spring boot

Following are the required Steps to configure, RestAPI token authentication in spring boot using JWT and Spring boot using JPA, MYSQL, and PostMan. Maven Dependencies  <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency> <dependency> <groupId>io.jsonwebtoken</groupId> <artifactId>jjwt</artifactId> <version>0.9.0</version> </dependency> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-test</artifactId> <scope>test</scope> </dependency> The main class of Spring boot ProjectName_Application.Java: package com.jwt; import com.jwt.model.User; import com.jwt.repo.UserRepository; import org.springframework.beans.factory.annotation.Autowired; import …

RestAPI token authentication in spring boot using JWT and Spring boot Read More »

Insurance Policy Management Project in Spring boot and Hibernate

Policy provider Portal in spring boot and hibernate it a web application. Another project in Spring boot and hibernate with source code and project. Insurance policy management application helps to manage all the policies and a simple platform to buy the new policy. Let’s see all the features, functionality, User roles, and used technology in …

Insurance Policy Management Project in Spring boot and Hibernate Read More »

Login Registration and Logout in Spring MVC with Hibernate

In this article, we will learn How to create a Registration, Login, and logout application in Spring MVC with Hibernate. If you want to learn Spring MVC, do check this article https://codedec.com/tutorials/simple-example-of-spring-mvc/ Login Registration and Logout in Spring MVC with Hibernate We will develop the Registration, Login, and logout application using Spring MVC Framework, Hibernate …

Login Registration and Logout in Spring MVC with Hibernate Read More »