共计 144 个字符,预计需要花费 1 分钟才能阅读完成。
1、spring 中 Constructor、@Autowired、@PostConstruct 的顺序
Constructor >> @Autowired >> @PostConstruct
2、@NotEmpty 用在集合类上面
@NotBlank 用在 String 上面
@NotNull 用在基本类型上
正文完
共计 144 个字符,预计需要花费 1 分钟才能阅读完成。
1、spring 中 Constructor、@Autowired、@PostConstruct 的顺序
Constructor >> @Autowired >> @PostConstruct
2、@NotEmpty 用在集合类上面
@NotBlank 用在 String 上面
@NotNull 用在基本类型上