Skip to content

Commit 192da62

Browse files
committed
Fix locale interceptor code snippet
See gh-36105 See gh-36099
1 parent e1402fd commit 192da62

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

framework-docs/modules/ROOT/pages/web/webmvc/mvc-servlet/localeresolver.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@ that contain a parameter named `siteLanguage` now changes the locale. So, for ex
8383
a request for the URL `https://domain.com/home.view?siteLanguage=nl` changes the site
8484
language to Dutch. The following example shows how to intercept the locale:
8585

86-
include-code::./WebConfiguration[tag=snippet,indent=0]
86+
include-code::./WebConfiguration[tag=snippet,indent=0,chomp=-tags]

framework-docs/src/main/kotlin/org/springframework/docs/web/webmvc/mvcservlet/mvclocaleresolverinterceptor/WebConfiguration.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class WebConfiguration {
3737
setInterceptors(LocaleChangeInterceptor().apply {
3838
paramName = "siteLanguage"
3939
})
40-
/* @chomp:line urlMap = mapOf("/**/*.view" to "someController") */urlMap = mapOf("/**/*.view" to "someController")
40+
urlMap = mapOf("/**/*.view" to "someController")
4141
}
4242
}
4343
// end::snippet[]

0 commit comments

Comments
 (0)