注:該功能並非springboot特有的功能,springmvc同樣具有
一、使用方法
創建一個DateConverter類實現Converter接口
注:importorg.springframework.core.convert.converter.Converter;
Converter<S,T>
@param<S>the source type
@param<T>the target type
顧名思義,S代表是數據源類型,T是要轉換的類型
所以這個功能並非只限於轉換日期
二、效果圖