Document that port is omitted when it matches the scheme's default
Closes gh-325 Closes gh-329
This commit is contained in:
committed by
Andy Wilkinson
parent
b7e4edf904
commit
2fb3ede3a6
@@ -34,6 +34,9 @@ to change one or more of the defaults to suit your needs:
|
||||
include::{examples-dir}/com/example/mockmvc/CustomUriConfiguration.java[tags=custom-uri-configuration]
|
||||
----
|
||||
|
||||
NOTE: If the port is set to the default for the configured scheme (port 80 for HTTP or
|
||||
port 443 for HTTPS), it will be omitted from any URIs in the generated snippets.
|
||||
|
||||
TIP: To configure a request's context path, use the `contextPath` method on
|
||||
`MockHttpServletRequestBuilder`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user