Skip to content

Allow url to be specified when working with @AutoConfigureWebMvc configured HtmlUnit beans #47857

@rwinch

Description

@rwinch

Please update the autowired UriBuilderFactoryWebClient to support configuring the port of the base URL as was allowed with LocalHostWebClient.

Configuring the port is important for Spring Security applications because many tests will involve multiple servers with different ports being an important part of the assertions. For example, when using an Authorization Server the URLs that are redirected to will need to be the same as the Authorization Server's ports but must be different from the port of the OAuth Client.

Related spring-projects/spring-framework#35709

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions