赞
踩
File ==>> New ==>> Project
Spring Initializr ==>> 选择SDK ==>>点击Next
注意:pom.xml 中的父依赖版本号是2.3.4 (因为我用这个版本会报错,所以把他改为2.0.1)
修改前:
修改后:
修改SpringCloud 的版本号为Finchley.SR1
父项目中pom 文件所有的 jar
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.1.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent> <groupId>com.example.springboot_eureka_demo</groupId> <artifactId>springboot_eureka_demo</artifactId> <version>0.0.1-SNAPSHOT</version> <name>springboot_eureka_demo</name> <description>Demo project for Spring Boot</description> <properties> <java.version>1.8</java.version> <spring-cloud.version>Hoxton.SR8</spring-cloud.version> </properties> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。