com.seepine.mybatis.converter.EnumWebMvcConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-boot-starter-mybatis Show documentation
Show all versions of spring-boot-starter-mybatis Show documentation
Spring Boot Mybatis Dependencies
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