admin管理员组文章数量:1026989
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>
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>
本文标签: TypespringfoxdefiningBeanTypeNameExtractor
版权声明:本文标题:Consider defining a bean of type ‘springfox.documentation.schema.TypeNameExtractor‘ in your configur 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/jiaocheng/1738333687a1562292.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论