We're creating a new project in IntelliJ and must have something wrong because when we right click on a directory, select New and then get the context menu, Java based options are not shown. Currently get things like File, some HTML options, XML options.

We have assumed so far it's something we haven't configured correctly in the Project/Module configuration. The new module we are talking about is part of a multi module project. We created it using a Maven web archetype.

Any help configuring the project nature?

Edit: The answer is basic: 'That moment when you realise somethings not working because you haven't been clicking 'Apply'... :) We had a good laugh at ourselves when we discovered this'

推荐答案

The directory or one of the parent directories must be marked as Source Root (In this case, it appears in blue).

If this is not the case, right click your root source directory -> Mark As -> Source Root.

Java相关问答推荐

如何使用Java API在Oracle ODI中运行模拟?

强制Mockito返回null而不是emtpy list

只需最少的代码更改即可将版本号标记添加到日志(log)

将关键字与正文中的_Allowed匹配,但带有__Signing可选后缀

JPanel透支重叠的JComcoBox

如何在ApachePOI中将图像添加到工作表的页眉?

计算两个浮点数之间的距离是否对称?

如何在Java中从XML中获取特定的 node ,然后将其删除?

通过移动一个类解决了潜在的StubbingProblem.它怎麽工作?

如何使用SpringBoot中的可分页对整数作为字符串存储在数据库中时进行排序

将响应转换为带值的键

用OSQL创建索引

try 使用类来包含JSON响应

try 在两个不同数组的数字之间求平均值

具有多个模式的DateTimeForMatter的LocalDate.parse失败

如何在字节数组中反转UTF-8编码?

循环不起作用只有第一个元素重复

如何在特定关键字后提取与模式匹配的多个值?

在JSON上获取反斜杠

我可以使用一个 PoolingNHttpClientConnectionManager 运行多个 HttpAsyncClient 吗?