Skip to content

Commit febe5e6

Browse files
ngocnhan-tran1996jzheaux
authored andcommitted
docs: update
1 parent d23f283 commit febe5e6

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

docs/modules/ROOT/pages/servlet/architecture.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ You can also use `HttpSecurity#addFilterAfter` to add the filter after a particu
372372

373373
And that's it, now the `TenantFilter` will be invoked in the filter chain and will check if the current user has access to the tenant id.
374374

375-
Be careful when you declare your filter as a Spring bean, either by annotating it with `@Component` or by declaring it as a bean in your configuration, because Spring Boot will automatically {spring-boot-reference-url}web.html#web.servlet.embedded-container.servlets-filters-listeners.beans[register it with the embedded container].
375+
Be careful when you declare your filter as a Spring bean, either by annotating it with `@Component` or by declaring it as a bean in your configuration, because Spring Boot will automatically {spring-boot-reference-url}reference/web/servlet.html#web.servlet.embedded-container.servlets-filters-listeners.beans[register it with the embedded container].
376376
That may cause the filter to be invoked twice, once by the container and once by Spring Security and in a different order.
377377

378378
If you still want to declare your filter as a Spring bean to take advantage of dependency injection for example, and avoid the duplicate invocation, you can tell Spring Boot to not register it with the container by declaring a `FilterRegistrationBean` bean and setting its `enabled` property to `false`:

docs/modules/ROOT/pages/servlet/authentication/logout.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The rest of this section covers a number of use cases for you to consider:
1919
[[logout-java-configuration]]
2020
== Understanding Logout's Architecture
2121

22-
When you include {spring-boot-reference-url}using.html#using.build-systems.starters[the `spring-boot-starter-security` dependency] or use the `@EnableWebSecurity` annotation, Spring Security will add its logout support and by default respond both to `GET /logout` and `POST /logout`.
22+
When you include {spring-boot-reference-url}reference/using/build-systems.html#using.build-systems.starters[the `spring-boot-starter-security` dependency] or use the `@EnableWebSecurity` annotation, Spring Security will add its logout support and by default respond both to `GET /logout` and `POST /logout`.
2323

2424
If you request `GET /logout`, then Spring Security displays a logout confirmation page.
2525
Aside from providing a valuable double-checking mechanism for the user, it also provides a simple way to provide xref:servlet/exploits/csrf.adoc[the needed CSRF token] to `POST /logout`.

docs/modules/ROOT/pages/servlet/authorization/authorize-http-requests.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ In this case, authorization happens twice; once for authorizing `/endpoint` and
124124

125125
For that reason, you may want to <<match-by-dispatcher-type, permit all `FORWARD` dispatches>>.
126126

127-
Another example of this principle is {spring-boot-reference-url}web.html#web.servlet.spring-mvc.error-handling[how Spring Boot handles errors].
127+
Another example of this principle is {spring-boot-reference-url}reference/web/servlet.html#web.servlet.spring-mvc.error-handling[how Spring Boot handles errors].
128128
If the container catches an exception, say like the following:
129129

130130
.Sample Erroring Spring MVC Controller

docs/modules/ROOT/pages/servlet/authorization/method-security.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Xml::
3535
Then, you are immediately able to annotate any Spring-managed class or method with <<use-preauthorize, `@PreAuthorize`>>, <<use-postauthorize,`@PostAuthorize`>>, <<use-prefilter,`@PreFilter`>>, and <<use-postfilter,`@PostFilter`>> to authorize method invocations, including the input parameters and return values.
3636

3737
[NOTE]
38-
{spring-boot-reference-url}using.html#using.build-systems.starters[Spring Boot Starter Security] does not activate method-level authorization by default.
38+
{spring-boot-reference-url}reference/using/build-systems.html#using.build-systems.starters[Spring Boot Starter Security] does not activate method-level authorization by default.
3939

4040
Method Security supports many other use cases as well including <<use-aspectj, AspectJ support>>, <<use-programmatic-authorization,custom annotations>>, and several configuration points.
4141
Consider learning about the following use cases:

docs/modules/ROOT/pages/servlet/getting-started.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ You first need to add Spring Security to your application's classpath; two ways
1717
[[servlet-hello-starting]]
1818
== Starting Hello Spring Security Boot
1919

20-
With Spring Security <<servlet-hello-dependencies,on the classpath>>, you can now {spring-boot-reference-url}#using.running-your-application[run the Spring Boot application].
20+
With Spring Security <<servlet-hello-dependencies,on the classpath>>, you can now {spring-boot-reference-url}reference/using/running-your-application.html[run the Spring Boot application].
2121
The following snippet shows some of the output that indicates that Spring Security is enabled in your application:
2222

2323
.Running Spring Boot Application

docs/spring-security-docs.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ def generateAttributes() {
5656
def securityReferenceUrl = "$securityDocsUrl/reference/html5/"
5757
def springFrameworkApiUrl = "https://docs.spring.io/spring-framework/docs/$springFrameworkVersion/javadoc-api/"
5858
def springFrameworkReferenceUrl = "https://docs.spring.io/spring-framework/reference/$springFrameworkVersion/"
59-
def springBootReferenceUrl = "https://docs.spring.io/spring-boot/docs/$springBootVersion/reference/html/"
60-
def springBootApiUrl = "https://docs.spring.io/spring-boot/docs/$springBootVersion/api/"
59+
def springBootReferenceUrl = "https://docs.spring.io/spring-boot/$springBootVersion/"
60+
def springBootApiUrl = "https://docs.spring.io/spring-boot/$springBootVersion/api/java/"
6161

6262
return ['gh-old-samples-url': ghOldSamplesUrl.toString(),
6363
'gh-samples-url': ghSamplesUrl.toString(),

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# limitations under the License.
1515
#
1616

17-
springBootVersion=3.1.1
17+
springBootVersion=3.3.3
1818
version=6.4.0-SNAPSHOT
1919
samplesBranch=main
2020
org.gradle.jvmargs=-Xmx3g -XX:+HeapDumpOnOutOfMemoryError

0 commit comments

Comments
 (0)