本文介绍了JavaEE中的“Facet”是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不仅想知道什么是Facet,还有什么是Facet'在物理层面'(据我所知,它不是一个单独的罐子,而是什么?)?

I wonder not only what is Facet but also what is Facet 'in physical level' (as I understand it's not a separate jar, but what?)?

我也想知道在部署之后它如何影响我的应用程序。我将在真实的例子中解释:

I also wonder how can it affect my application after deploying. I'll explain on real example:

我有2个方面(由IDE创建):Spring Facet和Web Facet(用于jsf)。我将它部署到Tomcat并且我的应用程序工作正常。

I had 2 facets (which were created by IDE): Spring Facet and Web Facet (for jsf). I deployed it to Tomcat and my application worked fine.

然后我添加了(通过IDE)一个方面 - JPA Facet。我重新部署了应用程序,它仍然运行良好:)

Then I added (by means of IDE) one more facet - JPA Facet. I redeployed application and.. it still worked fine :)

所以,我只是好奇这是什么,为什么我们需要它?

So, I'm just curious what is that and why do we need it?

推荐答案

这与Java EE无关。这与IDE有关。该术语与编程无关。

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

来自


  1. 其中一个平面抛光表面切割在宝石上或在水晶上自然发生

  2. 解剖学小而光滑,平坦的表面,如骨头或牙齿。

  3. 生物学复眼的一个透镜般的视觉单位,如
    昆虫。

  4. 作为主题的众多方面之一。请参阅的同义词。

  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.


它是4。

在这种特殊情况下,它只是项目中使用的一个方面,所以IDE可以在生成器,向导,自动包含库等方面拦截它。如果您添加例如方面,那么您将获得更多选项带有JPA的IDE-magic。

In this specific case it's just an aspect which is to be used in the project, so that the IDE can intercept on it with regard to generators, wizards, auto-include libraries and so on. If you add for example the JPA facet, then you will get more options to do the IDE-magic with JPA.

这篇关于JavaEE中的“Facet”是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 07:09