Skip to content

Commit 5cff43d

Browse files
committed
Link to EnableMethodSecurity instead of EnableGlobalMethodSecurity
Closes gh-43308
1 parent fcfbe50 commit 5cff43d

File tree

1 file changed

+1
-1
lines changed
  • spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/web

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/web/spring-security.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
If {url-spring-security-site}[Spring Security] is on the classpath, then web applications are secured by default.
55
Spring Boot relies on Spring Security’s content-negotiation strategy to determine whether to use `httpBasic` or `formLogin`.
6-
To add method-level security to a web application, you can also add javadoc:org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity[format=annotation] with your desired settings.
6+
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.
77
Additional information can be found in the {url-spring-security-docs}/servlet/authorization/method-security.html[Spring Security Reference Guide].
88

99
The default javadoc:org.springframework.security.core.userdetails.UserDetailsService[] has a single user.

0 commit comments

Comments
 (0)