天天看點

有關ideal的projectstruct的module的作用

module的resources作用

有關ideal的projectstruct的module的作用
有關ideal的projectstruct的module的作用
有關ideal的projectstruct的module的作用

是以,moudle的設定為resources是将裡面的檔案複制到target(輸出)的classes下。

有關ideal的projectstruct的module的作用

這個 resources應該不是必要的,sources才是必要的,裡面要放了.java檔案,sources是使用javac編譯的檔案,如果項目沒有使用Sources标記會出現許多錯誤,點選index.jsp去浏覽器時

有關ideal的projectstruct的module的作用

但是我在facets設定了的,

有關ideal的projectstruct的module的作用

如果我把sources設定為如下

有關ideal的projectstruct的module的作用

出現

有關ideal的projectstruct的module的作用

改為

有關ideal的projectstruct的module的作用

是以sources定義了你的包的根路徑。

而excluded(不包括)一般不使用

二 moudule facets

有關ideal的projectstruct的module的作用

deployment describtion是你的web.xml存放位址

有關ideal的projectstruct的module的作用

這裡是你的jsp,css檔案的存放位址

你的imi檔案下

有關ideal的projectstruct的module的作用
有關ideal的projectstruct的module的作用

weboot标簽内就是web resource direction的位址

三 artifact

有關ideal的projectstruct的module的作用

其中output directory 就是如圖target第三個

有關ideal的projectstruct的module的作用
有關ideal的projectstruct的module的作用

在artifact下将class下加入compile output下,在output root 增加module。

下面是我學習的 連結,講的很清楚。

[link]https://www.jianshu.com/p/39b2206999e7