MyBatis Mapping. xml File Error

Source: Internet
Author: User

Inside the MyBatis framework, test on the DAO layer, the console display error is: Must declare the property "Resulttype" for the element type "Delete"

The SQL statements for the corresponding. xml file are:

The console's detailed error is:

1. The attribute "Resulttype" must be declared for the element type "Delete"

2.

Check the data on the Internet to say that every _sqlmapper.xml file as far as possible in each SQL statement to a namespace (the complete Java class for each DAO layer);

Finally, the _sqlmapper.xml file Resulttype deleted, the test was successful;

Success Test diagram:

1 is to get the spring container

2 is to test the number of deleted data bars (the first test deletes the number of strips is 1), this time the result is the second Test

MyBatis Mapping. xml File Error

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.