Skip to content

Commit a19aef7

Browse files
committed
Merge pull request #329 from Gerrit Meier
* gh-329: Document that port is omitted when it matches the scheme's default
2 parents b7e4edf + 2fb3ede commit a19aef7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/src/docs/asciidoc/configuration.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ to change one or more of the defaults to suit your needs:
3434
include::{examples-dir}/com/example/mockmvc/CustomUriConfiguration.java[tags=custom-uri-configuration]
3535
----
3636

37+
NOTE: If the port is set to the default for the configured scheme (port 80 for HTTP or
38+
port 443 for HTTPS), it will be omitted from any URIs in the generated snippets.
39+
3740
TIP: To configure a request's context path, use the `contextPath` method on
3841
`MockHttpServletRequestBuilder`.
3942

0 commit comments

Comments
 (0)