更新时间:2021-12-16 06:46:25
由于已接受答案上的链接已失效,这里是步骤(我正在使用 Intellij 14):
Since the link on the accepted answer is dead, here is the process, step by step (I'm using Intellij 14):
1) 选择运行/编辑配置
2) 如果还没有Tomcat Run Config,则创建一个
2) If no Tomcat Run Config exists yet, create one
3) 选择刚刚创建的 Tomcat 运行配置,在 Deployment
选项卡上,在 Deploy at server startup
部分下,单击+"(右侧边栏),选择 外部源
,然后选择您的war文件.
3) Select the Tomcat run config just created, on Deployment
tab, under Deploy at server startup
section, click the "+" (right sidebar), select External source
, and select your war file.