Java实操避坑指南 业务代码-整合框架-存储-缓存常见错误详解
- 2-1 如何从根源避免空指针试看
- 2-2 赋值时自动拆箱出现空指针
- 2-3 字符串、数组、集合在使用时出现空指针怎么办?
- 2-4 使用 Optional 需要注意些什么?
- 2-5 明明 try catch 了却没有解决好异常?
- 2-6 常见异常:并发修改、类型转换、枚举查找
- 2-7 编码中常见异常解决办法
- 2-8 使用 try finally 资源泄露隐患
- Redis简介:Redis(Remote Dictionary Server ),即远程字典服务,是一个开源的使用ANSI C语言编写、支持网络、可基于内存亦可持久化的日志型、
- Key-Value数据库,并提供多种语言的API。从2010年3月15日起,Redis的开发工作由VMware主持。从2013年5月开始,Redis的开发由Pivotal赞助
package com.mooc.pojo.bo.center; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.hibernate.validator.constraints.Length; import javax.validation.constraints.*; import java.util.Date; /** * @author Administrator */
@Data @ApiModel(value = "用户对象", description = "从客户端,由用户传入的数据封装在此entity中") public class CenterUserBO { @ApiModelProperty(value = "用户名", name = "username", example = "json", required = false) private String username; @ApiModelProperty(value = "密码", name = "password", example = "123456", required = false) private String password; @ApiModelProperty(value = "确认密码", name = "confirmPassword", example = "123456", required = false) private String confirmPassword; @NotBlank(message = "用户昵称不能为空") @Length(max = 12, message = "用户昵称不能超过12位") @ApiModelProperty(value = "用户昵称", name = "nickname", example = "杰森", required = false) private String nickname; @Length(max = 12, message = "用户真实姓名不能超过12位") @ApiModelProperty(value = "真实姓名", name = "realname", example = "杰森", required = false) private String realname; @Pattern(regexp = "^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\\d{8})$", message = "手机号格式不正确") @ApiModelProperty(value = "手机号", name = "mobile", example = "13999999999", required = false) private String mobile; @Email @ApiModelProperty(value = "邮箱地址", name = "email", example = "mooc@mooc.com", required = false) private String email; @Min(value = 0, message = "性别选择不正确") @Max(value = 2, message = "性别选择不正确") @ApiModelProperty(value = "性别", name = "sex", example = "0:女 1:男 2:保密", required = false) private Integer sex; @ApiModelProperty(value = "生日", name = "birthday", example = "1900-01-01", required = false) private Date birthday; }
【:https://pan.baidu.com/s/1oJRtoo3rDBpWwQihZOSMcg 提取码:zm5n】
【视频高清无密,源码笔记齐全,如果失效加我:ititit111222333;:1940379308】