Eclipse configuration mybatis XML file Auto prompt

Source: Internet
Author: User

If you use Eclipse, and then write MyBatis XML file, there is no hint, with "alt+/", can not be used to knock out the code with shortcut keys, through the following method, it is possible to solve.
1, download a file, find a special place to save, configure the automatic prompt need to use. The download file path is: HTTP://MYBATIS.ORG/DTD/MYBATIS-3-MAPPER.DTD
2. Open Window–>preferences–>xml–>xml Catalog, click Add, in location, click File System, select the files you just downloaded, key type with public ID, Key to copy the XML header on the-//MYBATIS.ORG//DTD Mapper 3.0//en this part, after the save, after the cursor moved to the MyBatis XML file, the right mouse button, Open with–>xml Editor, Then use the XML file and you are prompted.

Here is the mapper file for MyBatis, and the key above is the code in the public below.

The following results are successful:

Eclipse configuration mybatis XML file Auto prompt

Related Article

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.