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
Make StringToEnumIgnoringCaseConverterFactory public #3021
Comments
How about using the |
Given the lack of response to @snicoll's suggestion, I'm going to assume that this is no longer needed. We can reopen this if that turns out to not be the case. |
I would like to use enum binding ignoring case in Spring MVC binding. I think simplest way is write
But |
I believe that'll work without configuring Spring MVC in Spring Boot 2.1 as the |
Unfortunately, not. Spring Boot MVC 2.10 use Fortunately, I found solution https://stackoverflow.com/a/52978020 which works in my case. But I feel a bit uncomfortable when I have to add bunch of converters (ApplicationConversionService.addApplicationConverters()) when I need only one |
Ah, yes. I'd forgotten about the different |
For Spring XD we ran into the need to have a more lenient enum converter. The functionality provided by
StringToEnumIgnoringCaseConverterFactory
is pretty much what we need, but unfortunately it is private, and hence we had to copy the code.See also: https://jira.spring.io/browse/XD-3066
The text was updated successfully, but these errors were encountered: