1.报错Consider defining a bean of type ‘springfox.documentation.schema.TypeNameExtractor’ in your configuration.

***************************
APPLICATION FAILED TO START
***************************

Description:

Parameter 0 of constructor in com.github.xiaoymin.knife4j.spring.plugin.DynamicResponseModelReader required a bean of type 'springfox.documentation.schema.TypeNameExtractor' that could not be found.


Action:

Consider defining a bean of type 'springfox.documentation.schema.TypeNameExtractor' in your configuration.

解决方案:在启动类加下注解

@ComponentScan({"springfox.documentation.schema"})

也有可能是你这个项目忘记加了swagger的配置

2.引进nacos依赖出现Caused by: java.lang.NoClassDefFoundError: javax/servlet/Filter

解决方案:
引进改依赖即可

   <dependency>
           <groupId>org.springframework.boot</groupId>
           <artifactId>spring-boot-starter-tomcat</artifactId>
      </dependency>

更多推荐

Consider defining a bean of type ‘springfox.documentation.schema.TypeNameExtract