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