idea2023 solves the problem that there is no Servlet in the right click

  1. Copy the files in Servlet Class.java.
    Insert image description here
  2. Go back to Files and click the little plus sign + and enter what you just copied:

Insert image description here
3. At this time, there is a servlet on the right click.

Insert image description here
4. Then he asks you to enter the following two boxes:

JAVAEE TYPE中输入Servlet
Class Name 表示你要创建的Servlet类的名称是什么。自己起名字。

Insert image description here
Then it's ok.

Why do version updates become more troublesome the more they are updated?

Guess you like

Origin blog.csdn.net/qq_45895217/article/details/135027726