Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename serverWebExchangeContextFilter to dgsServerWebExchangeContextFilter #2063

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

paulbakker
Copy link
Collaborator

This is a workaround for compatibility with Spring Hateoas.

Spring Hateoas doesn't do proper autoconfiguration, instead they have a custom mechanism for this. Unfortunately this mechanism doesn't play nice with bean conditionals, leading to a duplicate bean exception on serverWebExchangeContextFilter, even though this bean is @ConditionalOnMissingBean in DGS.

While this isn't directly a problem for DGS, there are many projects that use Spring Hateoas, often as a transitive through spring-data-rest. Because this is a simple workaround it's probably worth just renaming the bean in DGS.

…ilter. This is a workaround for compatibility with Spring Hateoas.
@paulbakker paulbakker merged commit 8eb9a8b into master Nov 15, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants