无法在 IntelliJ Ultimate Edition 2023.2 中创建新的 Servlet

问题描述 投票:0回答:0

this问题类似,我无法使用“新”上下文菜单

New -> Servlet
创建Servlet文件。但是,如屏幕截图所示,
src/main/java
已被标记为源根目录,因此它与答案所建议的问题不同。

我正在关注 JetBrains 的 text 教程

Screenshot showing the missing of 'new servlet'

Screenshot showing the source root activation

我检查了 Sources 根目录是否设置正确,以及默认 servlet 是否正常工作,确实如此。

maven tomcat intellij-idea servlets glassfish
© www.soinside.com 2019 - 2024. All rights reserved.