Java Code Examples for org.springframework.format.FormatterRegistry#addConverterFactory()
The following examples show how to use
org.springframework.format.FormatterRegistry#addConverterFactory() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BootMvcConfigurerAdapter.java From onetwo with Apache License 2.0 | 5 votes |
@Override public void addFormatters(FormatterRegistry registry) { registry.removeConvertible(String.class, Enum.class); registry.addConverterFactory(new IntStringValueToEnumConverterFactory()); registry.addConverterFactory(new IntegerToEnumConverterFactory()); }
Example 2
Source File: WebConfig.java From tutorials with MIT License | 5 votes |
@Override public void addFormatters(FormatterRegistry registry) { registry.addConverter(new StringToEmployeeConverter()); registry.addConverter(new StringToEnumConverter()); registry.addConverterFactory(new StringToAbstractEntityConverterFactory()); registry.addConverter(new GenericBigDecimalConverter()); }
Example 3
Source File: ApplicationConfig.java From ZTuoExchange_framework with MIT License | 4 votes |
@Override public void addFormatters(FormatterRegistry registry) { registry.addConverterFactory(new OrdinalToEnumConverterFactory()); super.addFormatters(registry); }
Example 4
Source File: ApplicationConfig.java From ZTuoExchange_framework with MIT License | 4 votes |
@Override public void addFormatters(FormatterRegistry registry) { registry.addConverterFactory(new OrdinalToEnumConverterFactory()); super.addFormatters(registry); }
Example 5
Source File: ApplicationConfig.java From ZTuoExchange_framework with MIT License | 4 votes |
@Override public void addFormatters(FormatterRegistry registry) { registry.addConverterFactory(new OrdinalToEnumConverterFactory()); super.addFormatters(registry); }
Example 6
Source File: ApplicationConfig.java From ZTuoExchange_framework with MIT License | 4 votes |
@Override public void addFormatters(FormatterRegistry registry) { registry.addConverterFactory(new OrdinalToEnumConverterFactory()); super.addFormatters(registry); }
Example 7
Source File: ApplicationConfig.java From ZTuoExchange_framework with MIT License | 4 votes |
@Override public void addFormatters(FormatterRegistry registry) { registry.addConverterFactory(new OrdinalToEnumConverterFactory()); super.addFormatters(registry); }
Example 8
Source File: ApplicationConfig.java From ZTuoExchange_framework with MIT License | 4 votes |
@Override public void addFormatters(FormatterRegistry registry) { registry.addConverterFactory(new OrdinalToEnumConverterFactory()); super.addFormatters(registry); }
Example 9
Source File: ApplicationConfig.java From ZTuoExchange_framework with MIT License | 4 votes |
@Override public void addFormatters(FormatterRegistry registry) { registry.addConverterFactory(new OrdinalToEnumConverterFactory()); super.addFormatters(registry); }
Example 10
Source File: ApplicationConfig.java From ZTuoExchange_framework with MIT License | 4 votes |
@Override public void addFormatters(FormatterRegistry registry) { registry.addConverterFactory(new OrdinalToEnumConverterFactory()); super.addFormatters(registry); }
Example 11
Source File: WebMvcAutoConfiguration.java From halo with GNU General Public License v3.0 | 4 votes |
@Override public void addFormatters(FormatterRegistry registry) { registry.addConverterFactory(new StringToEnumConverterFactory()); }
Example 12
Source File: WebConfig.java From tutorials with MIT License | 4 votes |
@Override public void addFormatters(FormatterRegistry registry) { registry.addConverter(new StringToEmployeeConverter()); registry.addConverterFactory(new StringToEnumConverterFactory()); registry.addConverter(new GenericBigDecimalConverter()); }