org.zodiac.autoconfigure.web.AbstractPlatformConverterConfiguration Maven / Gradle / Ivy
package org.zodiac.autoconfigure.web;
import org.springframework.format.FormatterRegistry;
import org.zodiac.commons.convert.EnumToStringConverter;
import org.zodiac.commons.convert.StringToEnumConverter;
public abstract class AbstractPlatformConverterConfiguration {
protected final void registryFormatters(FormatterRegistry registry) {
registry.addConverter(new EnumToStringConverter());
registry.addConverter(new StringToEnumConverter());
}
}