1, the attachment has the test class (the class has the annotation description), emoji the corresponding picture folder, as well as the XML mapping relation file.
2, uploaded 2 folders, because each attachment can only be 2M, so separate upload, you need to copy the Emoji2 picture into the emoji folder.
3, the XML file needs to be placed in the root directory, the test class needs to modify the folder storage path
4, run the main method, you can see the image format of the HTML output. It can be displayed on the page.
Here is my test class and file Demo: 1f411 corresponds to a goat.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/73/B7/wKiom1YE3fnRvd1DAASD2TrFOe8492.jpg "style=" float: none; "title=" 1.png "alt=" Wkiom1ye3fnrvd1daasd2trfoe8492.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/73/B4/wKioL1YE3f3QDO1xAABRl1-2CA4583.jpg "style=" float: none; "title=" 2.png "alt=" Wkiol1ye3f3qdo1xaabrl1-2ca4583.jpg "/>
Emoji symbol resolution, with code