Spring Boot Security using Database
This post walks you through the process of creating a simple registration and login example with Spring Security using database. Please read this previous post before conitnue with this information. First we need to add Spring Data JPA dependency to the build.gradle
compile 'org.springframework.boot:spring-boot-starter-data-jpa' Then we need to change Spring security Java config class in order to add userDetailsService to implement database access functionality:
package com.jos.dem.springboot.security.config import org.springframework.beans.factory.annotation.Autowired import org.springframework.context.annotation.Configuration import org.
[Read More]