ntelliJ IDEA社區版沒有自帶tomcat。
裝插件——smart tomcat。web
IntelliJ IDEA>>Preferences>>Plugins>> 搜索tomcat >> 選擇smart tomcat >> Install >> 重啓IDEA。tomcat
而後 Run >> Edit Configurations >> 填寫以下幾項:app
Name:配置的名字,
Tomcat Server:tomcat的路徑
Deployment:webapp所在的路徑
Contex Path:上下文路徑。會識別
Server Port:默認是8080,能夠改爲其它
VM options: 可選的。沒有參數就不填webapp