查詢spring-boot-starter-web-2.3.8.RELEASE.pom沒有validation對應的包,所以要想使用校驗功能要手動引入包:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
查詢spring-boot-starter-web-2.3.8.RELEASE.pom沒有validation對應的包,所以要想使用校驗功能要手動引入包:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>