mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-30 16:52:13 +00:00
Fix code snippets in Authorize HttpServletRequest
Closes gh-11522
This commit is contained in:
parent
5632469a90
commit
6d37ca1808
@ -163,8 +163,9 @@ SecurityFilterChain web(HttpSecurity http) throws Exception {
|
|||||||
return http.build();
|
return http.build();
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
|
||||||
.XML
|
.XML
|
||||||
[source,xml]
|
[source,xml,role="secondary"]
|
||||||
----
|
----
|
||||||
<http once-per-request="false">
|
<http once-per-request="false">
|
||||||
<intercept-url pattern="/**" access="authenticated"/>
|
<intercept-url pattern="/**" access="authenticated"/>
|
||||||
@ -193,7 +194,7 @@ SecurityFilterChain web(HttpSecurity http) throws Exception {
|
|||||||
}
|
}
|
||||||
----
|
----
|
||||||
.XML
|
.XML
|
||||||
[source,xml]
|
[source,xml,role="secondary"]
|
||||||
----
|
----
|
||||||
<http auto-config="true" once-per-request="false">
|
<http auto-config="true" once-per-request="false">
|
||||||
<intercept-url request-matcher-ref="dispatcherTypeMatcher" access="permitAll" />
|
<intercept-url request-matcher-ref="dispatcherTypeMatcher" access="permitAll" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user