Spring Boot 3 + Security - Disable Authentication
Video
This tutorial is explained in the below Youtube Video.Spring Boot 3 Security
Simple Boot3 + Security in depth understanding Simple Boot3 + Security - Disable Authentication Simple Boot3 + Security - Custom Credentials
Implement Security Configuration to disable security configuration
We will be modifying the spring boot project we created in previous tutorial. The maven project will be as follows-Create a configuration class named SecurityConfig. In this configuration class we will permit all incoming requests without any authentication.
package com.javainuse.boot3security.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.web.SecurityFilterChain; @Configuration public class SecurityConfig { @Bean SecurityFilterChain filterChain(HttpSecurity http) throws Exception { http.authorizeHttpRequests().anyRequest().permitAll(); return http.build(); } }
Download Source Code
Download it -Spring Boot 3 Security - Disable Authentication Example