错误内容:
Unable to create a Configuration, because no Jakarta Bean Validation provider could be found
原因:Validation数据校验的包没找到
需要添加验证的依赖,添加
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
评论区