开发者社区 问答 正文

Spring 做 JSR-303验证,日期类型用 @DateFormat 还是 @DateTimeF

@DateTimeFormat 所在包是 org.springframework.format.annotation.DateTimeFormat,这个注解没有 message 参数 我看到有用 @DateFormat 可以带 message 参数的,请问这个应该引用哪个 jar?

展开
收起
长安归故里. 2020-01-31 14:20:57 2983 分享 版权
1 条回答
写回答
取消 提交回答
  • 请参考 http://jinnianshilongnian.iteye.com/blog/1423971 或 https://github.com/zhangkaitao/es

    2020-01-31 14:21:02
    赞同 展开评论