org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.mybatis.spring.mapper.MapperScannerConfigurer#0' defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'java.lang.String' to required type 'org.apache.ibatis.session.SqlSessionFactory' for property 'sqlSessionFactory'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [org.apache.ibatis.session.SqlSessionFactory] for property 'sqlSessionFactory': no matching editors or conversion strategy found
ssm框架运行出现这个问题怎么办急用
最新推荐文章于 2024-02-17 16:28:51 发布
本文解决了一个关于Spring框架中MyBatis配置错误的问题。主要问题是由于配置文件applicationContext.xml内的MapperScannerConfigurer组件未能正确设置SqlSessionFactory导致初始化失败。
摘要由CSDN通过智能技术生成