- All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<String,LocalTime>
public class String2LocalTimeConverter
extends Object
implements org.springframework.core.convert.converter.Converter<String,LocalTime>
解决 @RequestParam LocalTime Date 类型的入参,参数转换问题。
HH:mm:ss
HH时mm分ss秒
- Author:
- zuihou
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.core.convert.converter.Converter
andThen
-
Constructor Details
-
String2LocalTimeConverter
public String2LocalTimeConverter()
-
Method Details
-
convert
- Specified by:
convert in interface org.springframework.core.convert.converter.Converter<String,LocalTime>