Consider defining a bean of type ‘springfox.documentation.schema.TypeNameExtractor‘ in your configur
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.TypeNameExtractor‘ in your configur相关推荐
- springboot 工程启动报错之Consider defining a bean of type ‘XXX’ in your configuration.
一.前言: 使用springboot自动注入的方式搭建好了工程,结果启动的时候报错了!!!,错误如下图: Description:Field userEntityMapper in com.xxx.x ...
- Consider defining a bean of type ‘java.lang.String‘ in your configuration
Consider defining a bean of type 'java.lang.String' in your configuration 总结了网上的几种解决方案: 1.多余的@autowi ...
- Consider defining a bean of type ‘com.xg.stupro.service.StudentService‘ in your configuration.
1.运行sprring boot项目时,出现这个错误:Consider defining a bean of type 'com.xg.stupro.service.StudentService' i ...
- Spring Boot:Consider defining a bean of type ‘*.*.*‘ in your configuration解决方案
Spring Boot:Consider defining a bean of type '*.*.*' in your configuration解决方案 参考文章: (1)Spring Boot: ...
- springboot 启动项目报Consider defining a bean of type 'com.mooc.house.biz.service.XXX' in your config
报错: Error starting ApplicationContext. To display the auto-configuration report re-run your applicat ...
- Consider defining a bean of type ‘cn.itcast.feign.clients.UserClient‘ in your configuration.解决方案
Consider defining a bean of type 'cn.itcast.feign.clients.UserClient' in your configuration.解决方案 Fei ...
- 关于spring boot自动注入出现Consider defining a bean of type ‘xxx‘ in your configuration问题解决方案
搭建完spring boot的demo后自然要实现自动注入来体现spring ioc的便利了,但是我在实施过程中出现了这么一个问题,见下面,这里找到解决办法记录下来,供遇到同样的问题的同僚参考 Des ...
- Consider defining a bean of type `xxx` in your configuration问题解决
Consider defining a bean of type `xxx` in your configuration问题解决 参考文章: (1)Consider defining a bean o ...
- Maven多模块开发Action:Consider defining a bean of type '*.*.*' in your configuration解决
最近在使用maven构建多模块进行Springboot和mybatits开发时,总遇到一些稀奇古怪的错误,在模块引用的时候,使用改对象并不报错,但是在启动项目时遇到类找打不到的错误,后来找到了解决方法 ...
最新文章
- 学习LINUX的几点注意事项
- python显示行数_jupyter notebook实现显示行号
- 打工人得努力了呀!AI虚拟人都要入职了…
- outlook里面邮件不能显示图片
- Mobile first 设计思路在 SAP 电商云 Spartacus UI 中的设计体现一例
- go Windows Service
- lucene-5.3.1配置(win7x64)
- Linux查看分区文件系统类型总结
- 系统学习机器学习之弱监督学习(三)--Adversarial Autoencoders
- IoT实时数据可视化方案(进阶版):Worldmap Panel使用详解及使用Node-RED进行流程管理...
- js获取当前日期加上30天之后的日期
- 短语wipe the slate clean
- 毕业设计-医院药品出入库管理系统
- 腾讯云域名购买和域名解析教程
- 满分作文生成器:生活在代码上
- name = STXingkai/OT, rootname = STXingkai/OT LaTex Package fontspec Error报错解决
- Java计算当前应用的tps_Java TPS实现
- 计算机科技协会知识竞赛策划书,科协活动策划书
- Neat Converter格式转换
- 使用树莓派GPIO17和GPIO18连接DS18B20温度传感器(关于DS18B20的时序设置)
热门文章
- 网络安全合规-PPT讲解思路
- excel批量生成文件夹和txt文件
- Adobe Dimension Essential Training: The Basics Adobe Dimension 基础教程:基础知识 Lynda课程中文字幕
- 2021-04-05 web前端CSS之权重,盒子边框内外边距
- 史上最全的App推广入门篇【新手必备】
- 苹果电脑解压不了文件是什么原因?
- 2014最新显卡天梯图
- 02 sqlite数据库应用(3)——智力问答测试
- 计算机专业毕业生登记表个人特长,毕业生登记表特长_毕业生登记表个人特长怎么写...
- 论文查重会查到知乎的内容吗?