Fix typos related to indefinite articles

Closes gh-23555
This commit is contained in:
康智冬
2019-09-01 21:45:49 +08:00
committed by Sam Brannen
parent f05f993cc6
commit a6f4862f13
11 changed files with 12 additions and 12 deletions

View File

@@ -81,7 +81,7 @@ public interface HandlerInterceptor {
* <p>DispatcherServlet processes a handler in an execution chain, consisting
* of any number of interceptors, with the handler itself at the end.
* With this method, each interceptor can decide to abort the execution chain,
* typically sending a HTTP error or writing a custom response.
* typically sending an HTTP error or writing a custom response.
* <p><strong>Note:</strong> special considerations apply for asynchronous
* request processing. For more details see
* {@link org.springframework.web.servlet.AsyncHandlerInterceptor}.

View File

@@ -347,7 +347,7 @@ public abstract class RequestPredicates {
void pathExtension(String extension);
/**
* Receive notification of a HTTP header predicate.
* Receive notification of an HTTP header predicate.
* @param name the name of the HTTP header to check
* @param value the desired value of the HTTP header
* @see RequestPredicates#headers(Predicate)

View File

@@ -401,7 +401,7 @@ public class DefaultHandlerExceptionResolver extends AbstractHandlerExceptionRes
/**
* Handle the case where a {@linkplain org.springframework.http.converter.HttpMessageConverter message converter}
* cannot read from a HTTP request.
* cannot read from an HTTP request.
* <p>The default implementation sends an HTTP 400 error, and returns an empty {@code ModelAndView}.
* Alternatively, a fallback view could be chosen, or the HttpMessageNotReadableException could be
* rethrown as-is.
@@ -422,7 +422,7 @@ public class DefaultHandlerExceptionResolver extends AbstractHandlerExceptionRes
/**
* Handle the case where a
* {@linkplain org.springframework.http.converter.HttpMessageConverter message converter}
* cannot write to a HTTP request.
* cannot write to an HTTP request.
* <p>The default implementation sends an HTTP 500 error, and returns an empty {@code ModelAndView}.
* Alternatively, a fallback view could be chosen, or the HttpMessageNotWritableException could
* be rethrown as-is.

View File

@@ -70,7 +70,7 @@ public class ServletUriComponentsBuilder extends UriComponentsBuilder {
}
// Factory methods based on a HttpServletRequest
// Factory methods based on an HttpServletRequest
/**
* Prepare a builder from the host, port, scheme, and context path of the

View File

@@ -55,7 +55,7 @@ import org.springframework.web.util.WebUtils;
* but this behavior can be changed by overriding the
* {@link #isEligibleProperty(String, Object)} method.
*
* <p>A URL for this view is supposed to be a HTTP redirect URL, i.e.
* <p>A URL for this view is supposed to be an HTTP redirect URL, i.e.
* suitable for HttpServletResponse's {@code sendRedirect} method, which
* is what actually does the redirect if the HTTP 1.0 flag is on, or via sending
* back an HTTP 303 code - if the HTTP 1.0 compatibility flag is off.

View File

@@ -147,7 +147,7 @@ public class ResourceBundleViewResolver extends AbstractCachingViewResolver
* <p>This avoids repeated "yyy1.(parent)=xxx", "yyy2.(parent)=xxx" definitions
* in the bundle, especially if all defined views share the same parent.
* <p>The parent will typically define the view class and common attributes.
* Concrete views might simply consist of an URL definition then:
* Concrete views might simply consist of a URL definition then:
* a la "yyy1.url=/my.jsp", "yyy2.url=/your.jsp".
* <p>View definitions that define their own parent or carry their own
* class can still override this. Strictly speaking, the rule that a