springboot启动失败
报错码:
WARN 6692 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'indexController': Unsatisfied dependency expressed through field 'userMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userMapper' defined in file [D:\workspace\179\springboot-quikstart\target\classes\com\alibaba\mapper\UserMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.boot.context.properties.ConfigurationPropertiesBindException: Error creating bean with name 'mybatis-org.mybatis.spring.boot.autoconfigure.MybatisProperties': Could not bind properties to 'MybatisProperties' : prefix=mybatis, ignoreInvalidFields=false, ignoreUnknownFields=true; nested exception is org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'mybatis.configuration' to org.apache.ibatis.session.Configuration
2022-08-02 18:02:19.524 INFO 6692 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2022-08-02 18:02:19.532 INFO 6692 --- [ main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-08-02 18:02:19.534 ERROR 6692 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to bind properties under 'mybatis.configuration' to org.apache.ibatis.session.Configuration:
Reason: No converter found capable of converting from type [java.lang.String] to type [@org.springframework.boot.context.properties.NestedConfigurationProperty org.apache.ibatis.session.Configuration]
Action:
Update your application's configuration
解决方法:
application.yaml配置文件里测试驼峰映射时 未将configuration注掉
springboot启动失败相关推荐
- 解决springboot启动失败问题:Unable to start embedded container;
解决springboot启动失败问题:Unable to start embedded container; 参考文章: (1)解决springboot启动失败问题:Unable to start e ...
- SpringBoot 启动失败 Failed to determine a suitable driver class 问题解决方案
SpringBoot 启动失败 Failed to determine a suitable driver class 问题解决方案 参考文章: (1)SpringBoot 启动失败 Failed t ...
- springboot启动失败的原因及其解决方法
前言: 对于springboot的启动失败,相信大家都有经历,但是为什么会启动失败,以及怎么解决都只能通过日志进行查看,在这里,我会将常见的springboot启动失败的报错一一展示 报错: 1:端口 ...
- springboot启动失败 required a bean of type ‘XXX‘ not be found
改造老项目时出现注入失败问题 Description: Field httpclient in com.cn.XXX.user.business.impl.UserBusinessImpl requi ...
- SpringBoot启动失败:出现错误——HikariPool-1 - Shutdown initiated...后立即出现 HikariPool-1 - Shutdown completed.
问题: . ____ _ __ _ _/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \\ ...
- springboot启动失败之A child container failed during start
前面巴拉巴拉一堆,看最后一行错误原因 java.lang.NoSuchMethodError: javax.servlet.ServletContext.getVirtualServerName()L ...
- spring-boot启动失败 Unregistering JMX-exposed beans on shutdown
1.美图 2.背景 拷贝了一个程序,结果运行直接退出了 . ____ _ __ _ _/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | ' ...
- springBoot启动失败Caused by: java.lang.ClassNotFoundException: org.springframework.http.MediaType
异常详情: Error starting ApplicationContext. To display the conditions report re-run your application wi ...
- SpringBoot启动流程是怎样的
前言 SpringBoot一开始最让我印象深刻的就是通过一个启动类就能启动应用.在SpringBoot以前,启动应用虽然也不麻烦,但是还是有点繁琐,要打包成war包,又要配置tomcat,tomcat ...
最新文章
- 用 WEKA 进行数据挖掘,第 3 部分: 最近邻和服务器端库
- 每日程序C语言47-找到年龄最大的人并输出
- 怎么得到scrollTop
- python字符串操作作业_python 第二天作业
- jconsole命令 Java Monitoring and Management Console
- 小米11顶配版屏幕参数曝光:2K 120Hz高刷屏支持运动补偿
- 在线打假!“鲁迅说过的话”检索系统上线 网友太热情系统一度崩溃
- element-ui中table表格表头和表格内容都水平居中
- vue条件渲染指令if/show
- NYOJ260 - 数数小木块
- Java的环境变量配置
- Unity接入谷歌支付
- Unity 导出obj模型
- T-test检验中的P,α理解
- jupyter notebook的安装与启动
- 南方电网电费充值源码文档
- flutter 可拖拽吸边的悬浮按钮,悬浮布局;
- 索引是什么,怎么确定索引
- Android编程权威指南笔记3:Android Fragment讲解与Android Studio中的依赖关系,如何添加依赖关系
- javaScript系列笔记 - JS实现MP4播放