After downloading the latest version of ibatis.net, we found that 1.6.2 differs from the old version in XML. The main difference lies in the following two locations:
Sqlmap. config: The New xmlns is:
<? XML version = "1.0" encoding = "UTF-8" ?>
< Sqlmapconfig Xmlns = "Http://ibatis.apache.org/dataMapper"
Xmlns: xsi = "Http://www.w3.org/2001/XMLSchema-instance" >
Sqlmap files, such as person. xml. The new xmlns is:
<? XML version = "1.0" encoding = "UTF-8" ?>
<Sqlmap
Namespace= "Person"
Xmlns= "Http://ibatis.apache.org/mapping"
Xmlns: xsi= "Http://www.w3.org/2001/XMLSchema-instance" >
I can't sort out the old ones. For projects that can run normally, an error occurred while initializing configureandwatch by referencing the new DLL. I found a lot of information and didn't find out how to solve it. After carefully reading the official documentation, I changed the XML xmlns and found that the error was not prompted. Now I am reporting the datasource error. It seems that the new version is different from the old version in the database source link.
After reading the official documentation, I suddenly got inspired and went to see the downloaded ibatis. in datamapper.1.6.2.bin, providers are found. the config file is provided. Therefore, I replace all the content in this file with the old providers. in the config file, the problem is solved.
original work from the effort to be lazy, reprint please note the source of the article: http://www.cnblogs.com/kfarvid/