All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.seepine.mybatis.converter.EnumWebMvcConfig Maven / Gradle / Ivy

The newest version!
package com.seepine.mybatis.converter;

import org.springframework.context.annotation.Configuration;
import org.springframework.format.FormatterRegistry;
import org.springframework.lang.NonNull;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author seepine
 */
@Configuration
public class EnumWebMvcConfig implements WebMvcConfigurer {
  @Override
  public void addFormatters(@NonNull FormatterRegistry registry) {
    registry.addConverterFactory(new StringToIEnumConverterFactory());
    registry.addConverter(new LocalDateTimeConverter.StringToLocalDateTimeConverter());
    registry.addConverter(new LocalDateTimeConverter.StringToLocalDateConverter());
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy