package com.aaa.controller; import org.springframework.beans.propertyeditors.CustomDateEditor; import org.springframework.web.bind.ServletRequestDataBinder; import org.springframework.web.bind.annotation.InitBinder; import java.text.SimpleDateFormat; import java.util.Date; public class BaseController { @InitBinder public void initBinder(ServletRequestDataBinder binder) { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); binder.registerCustomEditor(Date.class, new CustomDateEditor(sdf, true)); } }
最近下载更多
微信网友_6927932988952576 LV12
3月31日
提灯寻白鹿 LV2
3月27日
qqttuu LV3
3月4日
Hopu2024 LV2
2月22日
xk16675552250 LV33
1月5日
小安同学 LV7
2023年12月30日
阿桐吖 LV2
2023年12月29日
牛Bgtp LV1
2023年12月22日
lllxxxwofhoa LV2
2023年12月10日
2010160433 LV3
2023年12月7日
最近浏览更多
Gzp0822
4月12日
暂无贡献等级
李朝磊 LV18
4月8日
玖零定制问题修复 LV34
4月4日
chenglei1314 LV6
4月2日
微信网友_6927932988952576 LV12
3月31日
微信网友_6928193041338368
3月29日
暂无贡献等级
微信网友_6927790581157888
3月29日
暂无贡献等级
提灯寻白鹿 LV2
3月27日
微信网友_6914427966033920 LV4
3月25日
plecon LV1
3月25日