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