Fork me on GitHub
摘要: 3.3 JSR303数据校验 先看如何使用 ​ Springboot中可以用@Validated来校验数据,如果数据异常则统一抛出异常,方便异常中心统一处理。 ​ 这里我们写个注解让name只支持Email格式: @Component @ConfigurationProperties(prefix 阅读全文
posted @ 2020-09-30 11:25 CodeHuba 阅读(103) 评论(0) 推荐(0) 编辑