Using the springboot framework
Startup class needs to be added@ServletComponentScan
annotation
@WebServlet(urlPatterns = "/my/servlet", asyncSupported = true)
This work adoptsCC agreement, reprint must indicate the author and the link to this article