12 2019 档案

摘要:springboot使用@data注解,减少不必要代码原创不爱编程的设计师 发布于2018-10-22 16:41:28 阅读数 46839 收藏展开 一、idea安装lombok插件 二、重启idea三、添加maven依赖<dependency> <groupId>org.projectlombo 阅读全文
posted @ 2019-12-17 16:32 yuxinkuan 阅读(1294) 评论(0) 推荐(0)
摘要:validation与 springboot 结合 1. bean 中添加标签 部分代码: 标签需要加在属性上,@NotBlank 标签含义文章末尾有解释 public class User { private Integer id; @NotBlank(message = "{user.name. 阅读全文
posted @ 2019-12-17 15:51 yuxinkuan 阅读(14436) 评论(0) 推荐(1)