ibatis spring java.lang.NoSuchMethodError com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse

夙愿已清 提交于 2019-12-02 09:34:32

Looks like Spring 3.2 is not compatible with iBatis 2.3.4.

In iBatis 2.3.4 SqlMapConfigParser has no method #parse(InputStream, Properties), but in newer version myBatis 2.3.5 it is exist.

Probably problem also in MyBatis-Spring library version.

Nevertheless you should update version of myBatis or find appropriate version of Spring or Spring-iBatis integration.

Check whether you have ibatis jar file and mysql-connector jar file in your project. and your controller class name should not be controller.java

Check whether you have ibatis jar file and mysql-connector jar file in your project. and your controller class name should not be controller.java

your sqlmap namespace name should be unique for each sqlmap file which you have written in sqlMapConfig.xml

In your sqlmap file, all tag should be clearly defined. you should mention parameterClass and resultClass. Must not leave as empty one, like this.

select id="sampleid" parameterClass="" resultClass=""

Your query

select id="sampleid"

Your quer

Looks like the ibatis jar which you are using does not have parse method with those arguments. Decompile and see if the jar has parse the method which code is looking for.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!