Error starting ApplicationContext. To display the conditions report re-run
your application with 'debug' enabled.
报错原因是:高版本springboot已经去除掉了validation,所以还需要在工程中添加依赖,因为knife4j需要使用到他 :
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>