摘要:
@Validated 注解。需要导入依赖:spring-boot-starter-validation <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-validatio 阅读全文
posted @ 2022-06-22 23:50
现在开始JAVA
阅读(22)
评论(0)
推荐(0)
摘要:
第一种(优先): 1 @Component 2 @ConfigurationProperties(prefix = "person") 3 public class Person { 4 5 } 配置yaml文件: 1 person: 2 name: xianzaikaishi 3 age: ${r 阅读全文
posted @ 2022-06-22 23:44
现在开始JAVA
阅读(462)
评论(0)
推荐(0)