Class String2LocalDateConverter

java.lang.Object
top.tangyh.basic.converter.String2LocalDateConverter
All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<String,LocalDate>

public class String2LocalDateConverter extends Object implements org.springframework.core.convert.converter.Converter<String,LocalDate>
解决 @RequestParam 标记的 LocalDate 类型的入参,参数转换问题。

yyyy-MM-dd yyyy/MM/dd yyyy年MM月dd日

Author:
zuihou
  • Constructor Details

    • String2LocalDateConverter

      public String2LocalDateConverter()
  • Method Details

    • convert

      public LocalDate convert(String source)
      Specified by:
      convert in interface org.springframework.core.convert.converter.Converter<String,LocalDate>