- 下载smart tomcat 插件,File->settings->plugins 搜索smart tomcat,点击install,安装完成后重启idea。
- 点击 add configurations,点击 + ,选择Smart Tomcat。
- 配置Tomcat,Tomcat Server ->configuration 选择手动下载的Tomcat解压包路径。Deployment Directory 路径配置web项目的WebContent全路径。
- 修改项目的编译文件输出路径为WebContent/WEB-INF/classes, File->Project Structure->Modules->Paths->Compiler Output
- 手动将resources目录下的 文件复制到WebContent/WEB-INF/classes路径下,然后点击启动,即可通过
http://localhost:8080/应用名
访问应用。
更多推荐
idea社区版部署启动Spring MVC项目
发布评论