WebConfig.java
504 Bytes
package com.viontech.fanxing.commons.config;
import com.viontech.fanxing.commons.base.DateConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.convert.converter.Converter;
import java.util.Date;
/**
* .
*
* @author 谢明辉
* @date 2021/5/26
*/
@Configuration
public class WebConfig {
@Bean
public Converter<String, Date> addNewConvert() {
return new DateConverter();
}
}