赞
踩
Spring Cloud官网:spring.io/projects/spring-cloud
微服务:编程的一种目标
Spring Cloud Alibaba
如何搭建Spring Cloud
先创建一个新maven项目
去官网,选择H版
首先需要配置依赖
在pom.xml中添加依赖,springcloud的,springboot的依赖,阿里云的国内镜像仓库
<?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>cloud-demo</groupId> <artifactId>micservice-demo</artifactId> <packaging>pom</packaging> <version>1.0-SNAPSHOT</version> <properties> <spring.cloud-version>Hoxton.SR8</spring.cloud-version> </properties> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。