From the course: Spring Boot 3 Essential Training

Unlock this course with a free trial

Join today to access over 24,600 courses taught by industry experts.

Using Spring Security

Using Spring Security

- [Instructor] Now, it's time to implement Spring Security for our application. There's a lot going on here, so there's a lot to run through, but I promise you this is a lot simpler than many other frameworks that I've used. So the first thing I want you to do is update your exercise files because I have added a couple templates to our source main resources directory and modified a couple of our existing templates. I added an index template and a login template, both of which use Thymeleaf and then I added some header data with a H1 tag to both our rooms and staff just so we have a way to log out from these pages as well as get back to the homepage. That being said, let's jump to our pom file and we're going to add a couple dependencies. So the first dependency that we are going to add is spring-boot-starter-security from org-spring-framework-boot, and then we're also going to add a dependency on Spring Security test and that comes from org Spring framework Security. Go ahead and…

Contents