DateTimeFormat注释不适用于位置时间
我正在使用以下来获取HH:MM格式在我的POJO中的时间:
@DateTimeFormat(pattern = HTConstants.TIME_FORMAT)
private LocalTime checkOutTime;
但是它返回HH:MM:SS。还有其他方法做这件事,还是我在做什么错?
I am using following to get HH:MM format for time in my pojo:
@DateTimeFormat(pattern = HTConstants.TIME_FORMAT)
private LocalTime checkOutTime;
But it returns HH:MM:SS. Any other ways to do this or what am I doing wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论