© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
M. Nardone, C. ScarioniPro Spring Securityhttps://doi.org/10.1007/979-8-8688-0035-1_5

5. Web Security

Massimo Nardone1   and Carlo Scarioni2
(1)
HELSINKI, Finland
(2)
Surbiton, UK
 

This chapter shows how to build a Java web application using Spring Security 6 in Spring Boot 3. You see the inner workings of the security filter chain and the different metadata options at your disposal to define security constraints in your application.

Let’s build your Java web application using Spring Security 6 in Spring Boot 3, and please make sure you’re using Java 17+, as the baseline for Spring Boot 3 and Spring Security 6 is now Java 17. Java 20 is used in this demo.

The ...

Get Pro Spring Security: Securing Spring Framework 6 and Boot 3-based Java Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.