Create Project: springboot_security_2f (add Spring Boot Starters from the table)
Copy Project: User - From DB (overwrite src Directory, rename main Package & Class to reflect new Name)
Edit File: application.properties (specify PostgreSQL DB)
application.properties
# POSTGRESQL DATABASE
spring.datasource.url = jdbc:postgresql://localhost:5432/postgres
spring.datasource.username = postgres
spring.datasource.password = letmein
spring.datasource.driver-class-name = org.postgresql.Driver
# JPA / HIBERNATE
spring.jpa.hibernate.ddl-auto = create-drop
http://localhost:8080/hello
You get redirected to http://localhost:8080/login
– Username: john
– Password: johnpassword
– Sign in
You get redirected back to http://localhost:8080/hello
http://localhost:8080/login - john - johnpassword
http://localhost:8080/hello
DB Table: Account (Loaded Data)