[从零开始的账本项目00] 准备工作

206 阅读1分钟

前言:

在学习了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>

目前的想法是使用alibabanacos作为注册中心和配置中心
其余的cloud部分使用原生springcloud.
此处的技术选型使用的是 springcloudHoxton.SR12版本
配合官网推荐的springboot2.3.12.RELEASE版本
image.png

之后再不断往这个父Maven项目中添加新的Module来完善项目吧.