概述
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所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复