摘要: 1. 自动装配回顾 在主配置类中有@SpringBootApplication注解 在@SpringBootApplication中有一个自动装配的注解@EnableAutoConfiguration @EnableAutoConfiguration注解中导入了@Import(AutoConfigu 阅读全文
posted @ 2021-08-06 18:21 夜未央111 阅读(256) 评论(0) 推荐(0)
摘要: 1.JSR303校验 @Validated 开启303校验 @Email 验证字段是否是邮箱若email不可用在pom.xml中添加 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-st 阅读全文
posted @ 2021-08-06 14:06 夜未央111 阅读(81) 评论(0) 推荐(0)