Cause of error during ibatis.net (mybatis.net) 1.6.2 initialization.

Source: Internet
Author: User

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/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.