1、SpringBoot作为微架构的主要实现技术,其发布项目的方式极为简单,只需要在项目中配置好插件,然后打包执行就可以了,并且这个执行不需要特别复杂的配置。
首先,修改pom.xml配置文件,配置SpringBoot的打包插件。
1 <?xml version="1.0"?>
2 <project
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
4 http://maven.apache.org/xsd/maven-4.0.0.xsd"
5 xmlns="http://maven.apache.org/POM/4.0.0"
6 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
7 <modelVersion>4.0.0</modelVersion>
8
9 <parent>
10 <groupId>com.bie</groupId>
11 <artifactId>springboot-base</artifactId>
12 <version>0.0.1-SNAPSHOT</version>
13 </parent>
14
15 <!-- 父项目已经指定,这里可以省略 -->
16 <!-- <groupId>com.bie</groupId