@WebServlet annotation not recognized; init doesn't run

后端 未结 0 1567
清歌不尽
清歌不尽 2021-02-09 08:55

I\'m trying to learn annotations. I currently have a webapp that runs an init() when the app is started in Tomcat.

The following code works...

web.xml:



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题