Hardcoded Password
Explore the process of configuring Spring Boot security focusing on hardcoded passwords. Learn to create a security configuration class, use password encoders, and define in-memory users with roles. This lesson helps you understand the basics of authentication setup and secure password handling in Spring Boot applications.
We'll cover the following...
We'll cover the following...
Security configuration
The heart of security configuration always starts from a @Configuration class that extends
org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter. It’s usually placed in the infrastructure.security package and named as WebSecurityConfiguration:
- Annotate the class with
@Configurationso the component scanning will pick it up