Blogger Information
Blog 85
fans 0
comment 0
visits 72764
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
maven项目的三种方式:直接运行、jar包方式、war包方式讲解
Smile
Original
790 people have browsed it

  3、启动guns工程:

  3.1 运行java文件启动

  3.1.1 src/java/main/com/stylefeng/guns/GunsApplication

  3.1.2 run as -> java application

  3.2 运行jar文件启动

  3.2.1 编译打包成jar文件

  a) 找到 guns-parent工程

  b) run as -> maven build -> 执行如下命令

  c) clean package -Dmaven.test.skip=true

  3.2.2 执行jar文件

  java -jar guns-admin-1.0.0-SNAPSHOT.jar

  3.3 运行war文件启动

  3.3.1 修改guns-admin中的pom文件

  packaging -> war

  3.3.2 编译打包成jar文件

  a) 找到 guns-parent工程

  b) run as -> maven build -> 手游账号执行如下命令

  c) clean package -Dmaven.test.skip=true

  3.3.3 执行war文件

  a) 将war文件放置在tomcat中的webapps目录下

  b) 将guns-admin-1.0.0-SNAPSHOT.war修改为ROOT.war

  c) 启动tomcat即可

  %TOMCAT_HOME%/bin/startup.bat

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post