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 的属性,而没有构造方法初始化;
解决方法:在类中加上空的构造方法
1
2学如逆水行舟,不进则退
最后
以上就是任性发带最近收集整理的关于Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 's的全部内容,更多相关Caused内容请搜索靠谱客的其他文章。
发表评论 取消回复