Search in sources :

Example 1 with CustomLocalDateTimeEditor

use of org.apache.dubbo.admin.controller.editors.CustomLocalDateTimeEditor in project incubator-dubbo-ops by apache.

the class ApiDocsController method initBinder.

@InitBinder
public void initBinder(WebDataBinder binder) {
    binder.registerCustomEditor(String.class, new StringTrimmerEditor(true));
    binder.registerCustomEditor(LocalDate.class, new CustomLocalDateEditor());
    binder.registerCustomEditor(LocalDateTime.class, new CustomLocalDateTimeEditor());
}
Also used : StringTrimmerEditor(org.springframework.beans.propertyeditors.StringTrimmerEditor) CustomLocalDateEditor(org.apache.dubbo.admin.controller.editors.CustomLocalDateEditor) CustomLocalDateTimeEditor(org.apache.dubbo.admin.controller.editors.CustomLocalDateTimeEditor) InitBinder(org.springframework.web.bind.annotation.InitBinder)

Aggregations

CustomLocalDateEditor (org.apache.dubbo.admin.controller.editors.CustomLocalDateEditor)1 CustomLocalDateTimeEditor (org.apache.dubbo.admin.controller.editors.CustomLocalDateTimeEditor)1 StringTrimmerEditor (org.springframework.beans.propertyeditors.StringTrimmerEditor)1 InitBinder (org.springframework.web.bind.annotation.InitBinder)1