我是靠谱客的博主 任性发带,最近开发中收集的这篇文章主要介绍Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 's,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sqlSessionFactory’ defined in class path resource [org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method ‘sqlSessionFactory’ threw exception; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: ‘file [C:UsersChocolateDesktopgitee3Java-EESecondServercnmiaoztonlineschooltargetclassesmybatismapperCourseYMapper.xml]’; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is ‘file [C:UsersChocolateDesktopgitee3Java-EESecondServercnmiaoztonlineschooltargetclassesmybatismapperCourseYMapper.xml]’. Cause: org.apache.ibatis.builder.BuilderException: Error resolving JdbcType. Cause: java.lang.IllegalArgumentException: No enum constant org.apache.ibatis.type.JdbcType.Double

核对原因:是因为BeanInstantiationException:没有实例化[com.dakun.jianzhong.client。AppPictureService]:构造函数异常;嵌套异常java.lang.NullPointerException
在创建的类里面声明了public 的属性,而没有构造方法初始化;

解决方法:在类中加上空的构造方法

学如逆水行舟,不进则退

最后

以上就是任性发带为你收集整理的Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 's的全部内容,希望文章能够帮你解决Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 's所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(65)

评论列表共有 0 条评论

立即
投稿
返回
顶部