无人问津也好,技不如人也罢,你都要试着静下来,去做自己该做的事。
添加父管理项目
springboot 2.6.3 + spring-cloud 2021.0.1 + spring cloud alibaba 2021.1
在最顶层右击项目,点击 add as maven project
,做为整个项目的父项目,做依赖管理。
版本依赖说明:
https://github.com/alibaba/spring-cloud-alibaba/wiki/%E7%89%88%E6%9C%AC%E8%AF%B4%E6%98%8E
Spring Cloud Alibaba Version | Spring Cloud Version | Spring Boot Version |
2021.0.1.0* |
Spring Cloud 2021.0.1 |
2.6.3 |
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>groupId</groupId>
<artifactId>gulimall</artifactId>
<version>1.0-SNAPSHOT</version>
<name>gulimall</name>
<description>项目父工程,依赖管理</description>
<packaging>pom</packaging>