mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Document that /error is secured by default
Closes gh-45663
This commit is contained in:
+2
-1
@@ -2,7 +2,8 @@
|
||||
= Spring Security
|
||||
|
||||
If {url-spring-security-site}[Spring Security] is on the classpath, then web applications are secured by default.
|
||||
Spring Boot relies on Spring Security’s content-negotiation strategy to determine whether to use `httpBasic` or `formLogin`.
|
||||
This includes securing Spring Boot's `/error` endpoint.
|
||||
Spring Boot relies on Spring Security's content-negotiation strategy to determine whether to use `httpBasic` or `formLogin`.
|
||||
To add method-level security to a web application, you can also add javadoc:org.springframework.security.config.annotation.method.configuration.EnableMethodSecurity[format=annotation] with your desired settings.
|
||||
Additional information can be found in the {url-spring-security-docs}/servlet/authorization/method-security.html[Spring Security Reference Guide].
|
||||
|
||||
|
||||
Reference in New Issue
Block a user