From 05c3666fad8665e27ac636b9cc0fa1dd258998f5 Mon Sep 17 00:00:00 2001 From: DongNyoung Lee <121621378+Dongnyoung@users.noreply.github.com> Date: Tue, 6 May 2025 20:12:36 +0900 Subject: [PATCH 1/2] Fix grammatical error in JavaDoc of setResponse method in MockClientHttpRequest This pull request fixes a grammatical mistake in the JavaDoc of the setResponse method in MockClientHttpRequest. - Original: "the this request" - Changed to: "this request" This change improves the clarity and quality of the documentation. Signed-off-by: DongNyoung Lee <121621378+Dongnyoung@users.noreply.github.com> --- .../springframework/mock/http/client/MockClientHttpRequest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-test/src/main/java/org/springframework/mock/http/client/MockClientHttpRequest.java b/spring-test/src/main/java/org/springframework/mock/http/client/MockClientHttpRequest.java index 42222f449375..5c2c8c3229da 100644 --- a/spring-test/src/main/java/org/springframework/mock/http/client/MockClientHttpRequest.java +++ b/spring-test/src/main/java/org/springframework/mock/http/client/MockClientHttpRequest.java @@ -104,7 +104,7 @@ public URI getURI() { /** * Set the {@link ClientHttpResponse} to be used as the result of executing - * the this request. + * this request. * @see #execute() */ public void setResponse(ClientHttpResponse clientHttpResponse) { From 3940fb7c321e555639f4c41b302347c22a703818 Mon Sep 17 00:00:00 2001 From: DongNyoung Lee <121621378+Dongnyoung@users.noreply.github.com> Date: Fri, 5 Sep 2025 23:27:00 +0900 Subject: [PATCH 2/2] Update view-resolvers.adoc Signed-off-by: DongNyoung Lee <121621378+Dongnyoung@users.noreply.github.com> --- .../ROOT/pages/web/webmvc/mvc-config/view-resolvers.adoc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/framework-docs/modules/ROOT/pages/web/webmvc/mvc-config/view-resolvers.adoc b/framework-docs/modules/ROOT/pages/web/webmvc/mvc-config/view-resolvers.adoc index 5a0de6171d3f..ce6c21b202ba 100644 --- a/framework-docs/modules/ROOT/pages/web/webmvc/mvc-config/view-resolvers.adoc +++ b/framework-docs/modules/ROOT/pages/web/webmvc/mvc-config/view-resolvers.adoc @@ -10,6 +10,15 @@ default `View` for JSON rendering: include-code::./WebConfiguration[tag=snippet,indent=0] +[NOTE] +==== +Calling `registry.jsp()` registers an `InternalResourceViewResolver` +with a default prefix of `/WEB-INF/` and a suffix of `.jsp`. +Explicit configuration is only required if JSP files are located +in a different directory or use a different extension. +==== + + Note, however, that FreeMarker, Groovy Markup, and script templates also require configuration of the underlying view technology. The following example works with FreeMarker: