Spring Tutorial

Invalid property of bean class is not readable or has an invalid getter method in spring boot

While working with the Spring boot project, you might face the error “Invalid property of bean class is not readable or has an invalid getter method in spring boot”. The complete error message that you can see in the console is: Invalid property ‘firstName’ of bean class [com.schoolmgt.form.UserForm]: Bean property ‘firstName’ is not readable or …

Invalid property of bean class is not readable or has an invalid getter method in spring boot Read More »

How to display or hide HTML element on condition in JSP page using jstl

How to display or hide any HTML element on the basis of conditions on the JSP page using JSTL. JSP is Java Server Page where we can write HTML code as well as we can run java code. Yes, Java provides if-else and switch statements to handle business conditions. But while we are using advanced …

How to display or hide HTML element on condition in JSP page using jstl Read More »

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 »