update 使用 jackson 全局处理时间

2.X
疯狂的狮子li 2021-12-30 17:06:21 +08:00
parent 82509d3ffc
commit bafb58cd8e
1 changed files with 0 additions and 17 deletions

View File

@ -25,23 +25,6 @@ import com.ruoyi.common.core.web.page.TableDataInfo;
public class BaseController public class BaseController
{ {
/**
* Date
*/
@InitBinder
public void initBinder(WebDataBinder binder)
{
// Date 类型转换
binder.registerCustomEditor(Date.class, new PropertyEditorSupport()
{
@Override
public void setAsText(String text)
{
setValue(DateUtils.parseDate(text));
}
});
}
/** /**
* *
*/ */