intellij idea 建立動態web專案
intellij idea這個開發工具功能強大,但是大部分人都習慣eclipse 開發,所以對這個工具還不是太瞭解。
今天就給大家分享一下自己使用intellij idea建立一個動態web專案的經驗。
不喜勿噴哦!
1.第一步,當然是開啟我們們的intellij idea開發工具啦!哈哈,好,不說廢話,直接開始。
我就以2016版的intellij idea為例。
點選左上角的File--> new --> Project
2,之後會彈出一個選擇框,選擇Java Enterprise ,網上有的會說選擇第一個java 當然也是可行的 ,兩者之間有一點點細微的差別啦,當然別忘記勾選Web Application,點選Next,
3:點選Next 之後會出現 第一項是你的工程名字,隨便取啦,第二個是你的工程路徑,選擇好之後點選finish
4,完成之後,點選WEF-INF ,右鍵,NEW-->Directory 建立兩個資料夾,classes 和 lib 這個名字不要改哦!
大概就是這樣
5,完成後再點選File ,選擇Project Structure
6,點選Modules ,選擇Paths,選中Use module compile output path ,把路徑改成剛剛建立的classes資料夾
7.ok後再點旁邊的Dependencies,點選"+"號,選擇1 JARs or directories ,
8,選擇你剛剛建立的lib資料夾,OK
9.選第3個,jar Directory。 一路OK 到底!
10.回到主介面後,點選Run ,選擇Edit Configurations
11.看tomcat已經有啦,這是java Enterprise的好處啦,點選Deployment ,
12.Application context可以填也可以不填
13,點選index.jsp。隨便寫一段話,比如 hello world 第一個動態web執行啦
14.點選右上角的三角形
15。執行成功,大功告成!廢話一句,這裡地址和第12點的.Application context有關係的喲,如果.Application context裡面寫的有,相應的localhost後面也要加哦
相關文章
- IDEA建立動態Web專案IdeaWeb
- IntelliJ IDEA 建立Gradle/Java 專案IntelliJIdeaGradleJava
- Intellij IDEA 建立Web專案並在Tomcat中部署執行IntelliJIdeaWebTomcat
- idea建立web專案IdeaWeb
- IntelliJ IDEA 建立Spring+SpringMVC+mybatis+maven專案IntelliJIdeaSpringMVCMyBatisMaven
- spring boot 建立web專案(IDEA)Spring BootWebIdea
- idea社群版建立web專案IdeaWeb
- Idea intellij jdk 1.7通過maven建立Springboot專案IdeaIntelliJJDKMavenSpring Boot
- IntelliJ IDEA配置與搭建web專案入門使用IntelliJIdeaWeb
- Intellij IDEA 安裝Scala外掛 + 建立Scala專案(Hello World!)IntelliJIdea
- Intellij IDEA 安裝Python外掛 + 建立Python專案(Hello World!)IntelliJIdeaPython
- IntelliJ IDEA如何新建專案HTMLIntelliJIdeaHTML
- intellij IDEA建立檔案新增註釋模板IntelliJIdea
- SpringMVC框架詳細教程(二)_建立動態Web專案SpringMVC框架Web
- IDEA如何建立web專案及tomcat設定等IdeaWebTomcat
- idea建立springboot專案IdeaSpring Boot
- idea建立javaweb專案IdeaJavaWeb
- idea 建立springboot專案IdeaSpring Boot
- IDEA建立Flink專案Idea
- Intellij Idea 將Java專案打包成jarIntelliJIdeaJavaJAR
- Idea 建立 父專案和子專案Idea
- 使用IDEA建立gradle專案IdeaGradle
- 使用IDEA建立springboot專案IdeaSpring Boot
- 使用idea上傳專案到碼雲(gitee)上 IntelliJ IDEAIdeaGiteeIntelliJ
- 使用Maven,idea建立web專案啟動不了,war exploded: Artifact is being deployed, please wait...MavenIdeaWebAI
- mvn 建立java專案 web專案JavaWeb
- 1.idea建立springboot專案IdeaSpring Boot
- idea建立spring boot專案慢()IdeaSpring Boot
- IDEA建立SpringMVC+Gradle專案IdeaSpringMVCGradle
- SpringBoot專案在IntelliJ IDEA中實現熱部署Spring BootIntelliJIdea熱部署
- IntelliJ IDEA新建JSP檔案IntelliJIdeaJS
- IDEA社群版(IDEA Community Edition)建立Springboot父子專案IdeaUnitySpring Boot
- 使用Intellij建立springboot專案Spring Initializr Error 403IntelliJSpring BootError
- IDEA建立SpringBoot專案(詳細教程)IdeaSpring Boot
- [Android]後端之路--intellij IDEA Maven專案的搭建(1)Android後端IntelliJIdeaMaven
- Intellij Idea下設定專案字符集編碼IntelliJIdea
- Java IntelliJ IDEA 不能顯示專案裡的檔案結構JavaIntelliJIdea
- IntelliJ Idea14 建立Maven多模組專案,多繼承,熱部署配置總結(一)IntelliJIdeaMaven繼承熱部署
- SpringBoot專案建立報錯——解決Intellij idea Error:java: 無效的源發行版: 16Spring BootIntelliJIdeaErrorJava