简体   繁体   English

如何在 IntelliJ IDE 的“src”目录中创建目录

[英]How to create a directory in "src" directory in IntelliJ IDE

When I create a new project using Dynamic Web Application template, it creates following structure, src -> main -> webapp -> WEB-INF, and there is option to create a directory inside src folder as shown in the following image.当我使用动态 Web 应用程序模板创建一个新项目时,它会创建以下结构,src -> main -> webapp -> WEB-INF,并且可以选择在 src 文件夹中创建一个目录,如下图所示。

在此处输入图像描述

However when I create a project without using a template, then it does not allow to create any directory inside src folder.但是,当我在不使用模板的情况下创建项目时,它不允许在 src 文件夹中创建任何目录。 There is no option to create directory inside src as shown in the following image.没有在 src 中创建目录的选项,如下图所示。

How can I create same directory structure as above using an empty project?如何使用空项目创建与上述相同的目录结构?

在此处输入图像描述

Try creating a new Package instead.尝试创建一个新包。 It is basically the same and also creates a new directory inside your project folder它基本相同,并且还在您的项目文件夹中创建了一个新目录

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM