Skip to content

Base URL for ControllerLinkBuilder #516

Open
@rainerfrey

Description

@rainerfrey

There are several tickets requesting to influence the URLs that the ControllerLinkBuilder creates. I'd like to propose another variation:

I'd like an option to have ControllerLinkBuilder build links with a fixed, configured base URL instead of the information extracted from the servlet request. My use case is having redundant service instances that are accessed by client side load balancing from other services within the same application. I'd like to configure that base URL as an environment property, and in my case use spring.application.name as host name as this is the service name in eureka. There's a bit more context in this Stack Overflow question.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions