入口
cmd + ;
或者File | Project Structure...
或者在Project檢視中右鍵選擇Open Module Settings
,彈出Project Structure視窗

各個選單功能
- Project Settings (專案設定)
- Project (專案相關)
- Modules (模組相關)
- Libraries (專案中使用到的類庫)
- Facets (確認資訊,比如原始碼放在哪裡、相關資源(圖片等)在哪裡放、JavaWeb程式的root路徑等)
- Aftifacts (打包相關設定:打包名稱、輸出路徑等)
- Platform Settings (平臺設定)
- SDKs (專案使用的SDK資訊,也可以新增其他的SDK)
- Global Libraries (全域性類庫)
Project

Modules
配置模組的名稱
Sources

Paths

Dependencies

Facets
表示這個 module 有什麼特徵,比如 Web, Spring 和 Hibernate 等;

Artifacts
Artifact 是 maven 中的一個概念,表示某個 module 要如何打包,例如 war exploded、war、jar、ear 等等這種打包形式;
一個 module 有了 Artifacts 就可以部署到應用伺服器中了!
在給專案配置 Artifacts 的時候有好多個 type 的選項,exploed 是什麼意思?
explode 在這裡你可以理解為展開,不壓縮的意思。也就是 war、jar 等產出物沒壓縮前的目錄結構。建議在開發的時候使用這種模式,便於修改了檔案的效果立刻顯現出來。預設情況下,IDEA 的 Modules 和 Artifacts 的 output 目錄 已經設定好了,不需要更改,
打成 war 包 的時候會自動在 WEB-INF 目錄 下生產 classes 目錄 ,然後把編譯後的檔案放進去。

SDKS
系統開發工具 , 全域性 SDK 配置 。
Global libraries
全域性類庫,可以配置一些常用的類庫。
Problems
問題,在專案異常的時候很有用,可以根據提示進行專案修復 ( FIXED ) 。

問題

直接點選Fix | Create Artifact
,idea會自動給你生成一個基礎的artifact。


put into output root