Spring starter security

Spring Security can be extensively configured through application.properties. The following examples show some of the important configuration options related to Spring Security:

# Set true to Enable basic authentication security.basic.enabled=true# Provide a Comma-separated list of uris you would want to secure security.basic.path=/**# Provide a Comma-separated list of paths you don't want to secure security.ignored=# Name of the default user configured by spring security security.user.name=user# Password of the default user configured by spring security.  security.user.password=# Roles granted to default user security.user.role=USER

Get Mastering Spring 5.0 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.