intellij 個人草稿————


使用基於IntelliJ的IDE,如phpstorm、android studio都會對project和module的關係比較糊塗。用簡單的一句話來概括是:
IntelliJ系中的Project相當於Eclipse系中的workspace搜索
IntelliJ系中的Module相當於Eclipse系中的Project。
IntelliJ中一個Project可以包括多個Module
Eclipse中一個Workspace可以包括多個Project
phpstorm中似乎在弱化Module的存在,把File菜單下的New Module菜單項目直接刪除了。
在Android studio中仍存在。
Android studio中,一個Project代表一個完整的APP,Module表示APP中的一些依賴庫或獨立開發的模塊。比如可以新建一個library做爲module,然後在主APP上點右鍵 open module setting的Dependencies中添加一個模塊依賴。然後主APP中就可以使用module中的類了。




intellij 中(DY)web項目的結構

wKioL1gPBuGwy1nzAAAmk8ZkpR8096.jpg


project 相當於 workspace 

modules 相當於 project (相對於eclipse而言)


libraries還是jar類目


facets;  

Facets表示某個module有的特徵,比如web、strtus2、spring、hibernate等;
Artifacts是maven中的一個概念,表示某個module要如何打包,例如war exploded、war、jar、ear等等這種打包形式;
一個module有了Artifacts就可以部署到應用服務器中了!


artifacts







發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章