Browse Source

Polishing

pull/32412/head
yuhangbin 2 years ago committed by Juergen Hoeller
parent
commit
bed4d684e6
  1. 2
      spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/ParameterizableViewController.java
  2. 2
      spring-webmvc/src/main/java/org/springframework/web/servlet/resource/EncodedResourceResolver.java
  3. 2
      spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java
  4. 2
      spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceUrlProvider.java
  5. 2
      spring-webmvc/src/main/java/org/springframework/web/servlet/view/AbstractUrlBasedView.java
  6. 4
      spring-webmvc/src/main/java/org/springframework/web/servlet/view/JstlView.java
  7. 2
      spring-webmvc/src/main/java/org/springframework/web/servlet/view/RedirectView.java

2
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/ParameterizableViewController.java

@ -102,7 +102,7 @@ public class ParameterizableViewController extends AbstractController { @@ -102,7 +102,7 @@ public class ParameterizableViewController extends AbstractController {
* Configure the HTTP status code that this controller should set on the
* response.
* <p>When a "redirect:" prefixed view name is configured, there is no need
* to set this property since RedirectView will do that. However this property
* to set this property since RedirectView will do that. However, this property
* may still be used to override the 3xx status code of {@code RedirectView}.
* For full control over redirecting provide a {@code RedirectView} instance.
* <p>If the status code is 204 and no view is configured, the request is

2
spring-webmvc/src/main/java/org/springframework/web/servlet/resource/EncodedResourceResolver.java

@ -79,7 +79,7 @@ public class EncodedResourceResolver extends AbstractResourceResolver { @@ -79,7 +79,7 @@ public class EncodedResourceResolver extends AbstractResourceResolver {
* given request, and that has a file present with the associated extension,
* is used.
* <p><strong>Note:</strong> Each coding must be associated with a file
* extension via {@link #registerExtension} or {@link #setExtensions}. Also
* extension via {@link #registerExtension} or {@link #setExtensions}. Also,
* customizations to the list of codings here should be matched by
* customizations to the same list in {@link CachingResourceResolver} to
* ensure encoded variants of a resource are cached under separate keys.

2
spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java

@ -164,7 +164,7 @@ public class ResourceHttpRequestHandler extends WebContentGenerator @@ -164,7 +164,7 @@ public class ResourceHttpRequestHandler extends WebContentGenerator
* {@code /META-INF/public-web-resources/} directory, with resources in the
* web application root taking precedence.
* <p>For {@link org.springframework.core.io.UrlResource URL-based resources}
* (e.g. files, HTTP URLs, etc) this method supports a special prefix to
* (e.g. files, HTTP URLs, etc.) this method supports a special prefix to
* indicate the charset associated with the URL so that relative paths
* appended to it can be encoded correctly, for example
* {@code "[charset=Windows-31J]https://example.org/path"}.

2
spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceUrlProvider.java

@ -107,7 +107,7 @@ public class ResourceUrlProvider implements ApplicationListener<ContextRefreshed @@ -107,7 +107,7 @@ public class ResourceUrlProvider implements ApplicationListener<ContextRefreshed
/**
* Manually configure the resource mappings.
* <p><strong>Note:</strong> by default resource mappings are auto-detected
* from the Spring {@code ApplicationContext}. However if this property is
* from the Spring {@code ApplicationContext}. However, if this property is
* used, the auto-detection is turned off.
*/
public void setHandlerMap(@Nullable Map<String, ResourceHttpRequestHandler> handlerMap) {

2
spring-webmvc/src/main/java/org/springframework/web/servlet/view/AbstractUrlBasedView.java

@ -23,7 +23,7 @@ import org.springframework.lang.Nullable; @@ -23,7 +23,7 @@ import org.springframework.lang.Nullable;
/**
* Abstract base class for URL-based views. Provides a consistent way of
* holding the URL that a View wraps, in the form of a "url" bean property.
* holding the URL that a View wraps, in the form of an "url" bean property.
*
* @author Juergen Hoeller
* @since 13.12.2003

4
spring-webmvc/src/main/java/org/springframework/web/servlet/view/JstlView.java

@ -50,9 +50,9 @@ import org.springframework.web.servlet.support.RequestContext; @@ -50,9 +50,9 @@ import org.springframework.web.servlet.support.RequestContext;
* resource (for example: "myView" &rarr; "/WEB-INF/jsp/myView.jsp"), using
* this view class to enable explicit JSTL support.
*
* <p>The specified MessageSource loads messages from "messages.properties" etc
* <p>The specified MessageSource loads messages from "messages.properties" etc.
* files in the class path. This will automatically be exposed to views as
* JSTL localization context, which the JSTL fmt tags (message etc) will use.
* JSTL localization context, which the JSTL fmt tags (message etc.) will use.
* Consider using Spring's ReloadableResourceBundleMessageSource instead of
* the standard ResourceBundleMessageSource for more sophistication.
* Of course, any other Spring components can share the same MessageSource.

2
spring-webmvc/src/main/java/org/springframework/web/servlet/view/RedirectView.java

@ -554,7 +554,7 @@ public class RedirectView extends AbstractUrlBasedView implements SmartView { @@ -554,7 +554,7 @@ public class RedirectView extends AbstractUrlBasedView implements SmartView {
/**
* Determine whether the given model element value is eligible for exposure.
* <p>The default implementation considers primitives, strings, numbers, dates,
* URIs, URLs etc as eligible, according to {@link BeanUtils#isSimpleValueType}.
* URIs, URLs etc. as eligible, according to {@link BeanUtils#isSimpleValueType}.
* This can be overridden in subclasses.
* @param value the model element value
* @return whether the element value is eligible

Loading…
Cancel
Save