spring配置sqlMapClient出错,
来源:学生作业帮 编辑:百度作业网作业帮 分类:综合作业 时间:2024/08/18 03:14:11
spring配置sqlMapClient出错,
错误如下:
ERROR org.springframework.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException:Error creating bean with name 'sqlMapClient' defined in class path resource [applicationContext-ibatis.xml]:Invocation of init method failed; nested exception is java.lang.NoSuchMethodError:com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(Ljava/io/InputStream;Ljava/util/Properties;)Lcom/ibatis/sqlmap/client/SqlMapClient;
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
sqlmapclient的spring配置 我怎么都找不到到底是哪里配置出错了,
错误如下:
ERROR org.springframework.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException:Error creating bean with name 'sqlMapClient' defined in class path resource [applicationContext-ibatis.xml]:Invocation of init method failed; nested exception is java.lang.NoSuchMethodError:com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(Ljava/io/InputStream;Ljava/util/Properties;)Lcom/ibatis/sqlmap/client/SqlMapClient;
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
sqlmapclient的spring配置 我怎么都找不到到底是哪里配置出错了,
![spring配置sqlMapClient出错,](/uploads/image/z/2364186-66-6.jpg?t=spring%E9%85%8D%E7%BD%AEsqlMapClient%E5%87%BA%E9%94%99%2C)
你使用spring配置数据源的还是ibatis配置的?看看数据源配置是否正确.
还有,你的配置文件最起码贴点关键文字上来吧?
还有,你的配置文件最起码贴点关键文字上来吧?