前言:
在学习了
SpringCloud框架之后, 苦于没有实战经验.于是有了这个选题
首先在IDEA里先创建一个父项目Maven.
添加之后项目(大概)要用到的dependency
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>2.3.12.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Hoxton.SR12</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
<version>2.2.6.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<version>2.3.12.RELEASE</version>
</dependency>
</dependencies>
</dependencyManagement>
目前的想法是使用alibaba的nacos作为注册中心和配置中心
其余的cloud部分使用原生springcloud.
此处的技术选型使用的是 springcloud的Hoxton.SR12版本
配合官网推荐的springboot的2.3.12.RELEASE版本
之后再不断往这个父Maven项目中添加新的Module来完善项目吧.