(1)打开Maven工程,
Import Project ->选择工程的pom.xml -> next -> ... -> next ->
其中,IDEA会自动选择环境变量配置的SDK
(2)配置Maven路径,
File -> Settings -> Build, Execution, Deployment -> Build Tools -> Maven ->
修改User settings file
(3)设置Tomcat,
File -> Settings -> Build, Execution, Deployment -> Application Servers ->
添加一个tomcat,IDEA会自动搜索到系统中已经安装的tomcat。
(4)添加一个Tomcat服务器,
Run -> Edit configurations ->
添加 -> Tomcat Server -> Local ->
第二个选项卡Deployment:
添加 -> Artifact ->选择XXX.war exploded
第一个选项卡Server:
修改Name,设置HTTP port
注:
设置On frame deactivation为update resources,则jsp改动后会自动重新部署。