基于 Spring Cloud Alibaba 的系统后台搭建
提示:备忘学习笔记
搭建基础的父子框架
文章目录
一、搭建基础框架
Spring Cloud Alibaba + MyBatis Plus + MySQL
1.创建一个springboot,把alibaba的组件加进去
完成
2.在项目里搭建springcloud alibaba的环境
Spring Boot 版本修改为 2.3.0.RELEASE,因为高版本有 bug
在pom.xml 中添加:
<dependencyManagement>
<dependencies>
<!-- Spring Cloud Hoxton -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Hoxton.SR3</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!-- Spring Cloud Alibaba -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
<version