1、spring中Constructor、@Autowired、@PostConstruct的顺序
Constructor >> @Autowired >> @PostConstruct

2、 @NotEmpty 用在集合类上面
  @NotBlank 用在String上面
  @NotNull 用在基本类型上

发表回复

后才能评论