Annotation-based programming tags are used within your web projects as providers of metadata that is then used to generate other application artifacts as required. You add these tags to your code in the same way that you add Javadoc comments.
* Servlet implementation class for Servlet: MyServlet
This phrase represents the source code comment explaining the function / purpose of this class.
* @
The @ sign indicates that what follows is an annotation that needs to be processed.
* @web.servlet * name="myServlet" * display-name="myServlet" * * @web.servlet-mapping * url-pattern="/myServlet" *
This code contains the annotations that will be used to generate the artifacts. In this case, the annotation specifies that it is of the web.servlet type, which defines data relating to servlets. The tag also specifies values for the parameters name, display-name, and url-pattern.
Related Reference