idea社区版部署启动Spring MVC项目

  1. 下载smart tomcat 插件,File->settings->plugins 搜索smart tomcat,点击install,安装完成后重启idea。
0
0
  1. 点击 add configurations,点击 + ,选择Smart Tomcat。
0
  1. 配置Tomcat,Tomcat Server ->configuration 选择手动下载的Tomcat解压包路径。Deployment Directory 路径配置web项目的WebContent全路径。
0
  1. 修改项目的编译文件输出路径为WebContent/WEB-INF/classes, File->Project Structure->Modules->Paths->Compiler Output
0
  1. 手动将resources目录下的 文件复制到WebContent/WEB-INF/classes路径下,然后点击启动,即可通过http://localhost:8080/应用名 访问应用。
posted @ 2022-05-04 13:53  暗夜青灯随  阅读(1205)  评论(0)    收藏  举报