
spring-boot/spring-cloud
u010154380
这个作者很懒,什么都没留下…
展开
-
Springboot集成Hibernate-Validator验证
Springboot集成Hibernate-Validator验证Hibernate Validator常用注解注解 释义@Null 必须为null@NotNull 不能为null@AssertTrue 必须为true@AssertFalse 必须为false@Min 必须为数字,其值大于或等于指定的最小值@Max 必须为数字,其值小于或等于指定的最大值@DecimalMin 必须为数字,其值大于或等于指定的最小值@DecimalMax 必须为数字,其值小于或等于指定的最大值@Size转载 2020-07-22 11:45:01 · 1831 阅读 · 0 评论 -
spring-boot注解整理
spring-boot注解整理 一、注解(annotations)列表 @SpringBootApplication:包含了@ComponentScan、@Configuration和@EnableAutoConfiguration注解。其中@ComponentScan让spring Boot扫描到Configuration类并把它加入到程序上下文。@Configurati转载 2017-10-15 15:43:43 · 212 阅读 · 0 评论