标签:方式 ide 分享 image build info 技术 使用 boot1
一 .概述
本部分还是使用一个项目的方式进行演进,涉及到最常用的springcloud部分的主要技术.
二 .环境的说明
本次使用sprinboot1.5.9版本,另外springcloud部分使用的是D5版本.
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.9.RELEASE</version>
</parent>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Dalston.SR5</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<target>1.8</target>
<version>1.8</version>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
上面是最初使用的maven插件,在后面演进的过程之中还需要添加另外的插件内容.
三 .项目结构

如上图,就是最初的项目结构.其中"
parent是我们的pom的父项目,帮助完成项目的聚合工作.
现在最初的模块仅仅有的就是一个服务的提供者cloud-provider和一个服务的消费者cloud-consumer.[那个eureka是我们下面最开始学习的一个内容,服务中心].
标签:方式 ide 分享 image build info 技术 使用 boot1
原文地址:https://www.cnblogs.com/trekxu/p/9745333.html