Skip to content

Intellij

project structure

Facet

This is not Java EE related. This is IDE related. The term is at its own not programming related.

fac·et (fst) n.

  1. One of the flat polished surfaces cut on a gemstone or occurring naturally on a crystal.
  2. Anatomy A small, smooth, flat surface, as on a bone or tooth.
  3. Biology One of the lenslike visual units of a compound eye, as of an insect.
  4. One of numerous aspects, as of a subject. See Synonyms at phase.

It's 4.

java - What is 'Facet' in JavaEE? - Stack Overflow

facet 声明了每个模块使用技术的一些配置。一个模块可能有多个facet。Spring模块的配置就声明在Spring facet中。

Spring 的主类和配置文件是Spring的一些配置,但是不告诉IDEA在哪他自己是不知道在哪的,所以在facet中要写清楚在什么地方(默认会配好)。

在web模块中,需要配置web.xml和web资源目录的位置,也可以直接用默认的,一般我们建立/src/main/webapp。

  • intelliJ IDEA automatically detects Spring in your project based on the XML configuration or @Configuration annotations.