intellij idea开发web项目部署到系统tomcat,非idea虚拟tomcat

马克一下=====》前几天就在想弄一下intellij idea 的 非虚拟tomcat 部署;今天刚好碰到项目要远程访问,所以就走起~~~

1、安装tomcat,intellij idea过程(占位,过后有补充再放链接,目前自行百度哈)

2、设置idea与系统tomcat的关联(主要是通过idea导出的war)

1)新建项目
2)打开Project Structure(快捷键:Ctrl+Shift+Alt+s),选择Artifacts,点击+号,选择Web Application:Archive。
intellij idea开发web项目部署到系统tomcat,非idea虚拟tomcat_第1张图片
然后打勾右侧的Build on make,以及选择Output directiory路径为tomcat的webapps文件夹路径;
intellij idea开发web项目部署到系统tomcat,非idea虚拟tomcat_第2张图片

接着,新建该项目的Tomcat Server;
intellij idea开发web项目部署到系统tomcat,非idea虚拟tomcat_第3张图片
最后设置项目部署tomcat的配置项,选择Deployment页,然后再Application context中填写“/项目名”;
intellij idea开发web项目部署到系统tomcat,非idea虚拟tomcat_第4张图片


不理解的地方留言哈!本博客不定时抽风更新一下~





你可能感兴趣的:(IntelliJ,IDEA)