1. Modify Spring Boot1. Add: Spring-boot-maven-plugin Plugin
<Build> <Plugins> <plugin> <groupId>Org.springframework.boot</groupId> <Artifactid>Spring-boot-maven-plugin</Artifactid> </plugin> </Plugins></Build>
The packaging format is as follows:
<groupId>Com.smartom</groupId><!--package is packaged by this name -<Artifactid>MyWeb</Artifactid><!--The version number of the package build -<version>0.0.1</version>
2. Packaging
MVN Package
3. Running
Other questions:
1. Third-party Package packaging :
MVN Packaging
Install:install-file -dfile=lib\jdom.jar-dgroupid=org.jdom-dartifactid=jdom-dversion =1.1. 0 -dpackaging=jar-dgeneratepom=true
Important Parameters:
Dfile: Package Path
DgroupId: Corresponding GroupID
DartifactId: Corresponding Artifactid
Dversion: Corresponding version number
Then join the Pom.xml file
<Dependency> <groupId>Org.jdom</groupId> <Artifactid>Jdom</Artifactid> <version>1.1.0</version> </Dependency>
pom.xml loading a local jar package
<Dependency> <groupId>Org.wltea.analyzer</groupId> <Artifactid>Ikanalyzer</Artifactid> <version>2012_u6</version> <Scope>System</Scope> <Systempath>${project.basedir}/lib/jdom.jar
</ Systempath > </ Dependency >
2. The project contains multiple main
Spring boot on-line deployment