Skip to content

Commit

Permalink
Declare Bean for the new public KeyValueConverter (#3207)
Browse files Browse the repository at this point in the history
  • Loading branch information
martamedio authored Mar 6, 2024
1 parent e9f7d15 commit 4ec55db
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@
import org.springframework.cloud.gateway.route.RouteRefreshListener;
import org.springframework.cloud.gateway.route.builder.RouteLocatorBuilder;
import org.springframework.cloud.gateway.support.ConfigurationService;
import org.springframework.cloud.gateway.support.KeyValueConverter;
import org.springframework.cloud.gateway.support.StringToZonedDateTimeConverter;
import org.springframework.cloud.gateway.support.config.KeyValueConverter;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;
Expand Down Expand Up @@ -202,6 +202,15 @@ public StringToZonedDateTimeConverter stringToZonedDateTimeConverter() {
return new StringToZonedDateTimeConverter();
}

/**
* @deprecated in favour of
* {@link org.springframework.cloud.gateway.support.config.KeyValueConverter}
*/
@Bean
public org.springframework.cloud.gateway.support.KeyValueConverter deprecatedKeyValueConverter() {
return new org.springframework.cloud.gateway.support.KeyValueConverter();
}

@Bean
public KeyValueConverter keyValueConverter() {
return new KeyValueConverter();
Expand Down

0 comments on commit 4ec55db

Please sign in to comment.