1.打开IDEA,搜索File->Settings...->Editor->File | Settings | Editor | File and Code Templates
按照上图,在右边的代码区复制Servlet代码,然后点击File
在Name处编辑Servlet名称,扩展名为java。将复制的代码粘贴进去,然后点击Apply,OK。
右击就可以快捷建立Servlet。
1.打开IDEA,搜索File->Settings...->Editor->File | Settings | Editor | File and Code Templates
按照上图,在右边的代码区复制Servlet代码,然后点击File
在Name处编辑Servlet名称,扩展名为java。将复制的代码粘贴进去,然后点击Apply,OK。
右击就可以快捷建立Servlet。