瀏覽代碼

update 使用 jackson 全局处理时间

疯狂的狮子li 4 年之前
父節點
當前提交
bafb58cd8e

+ 0 - 17
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/web/controller/BaseController.java

@@ -25,23 +25,6 @@ import com.ruoyi.common.core.web.page.TableDataInfo;
 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));
-            }
-        });
-    }
-
     /**
      * 设置请求分页数据
      */