我是Spring Cloud的新手,浏览了一些我从STS创建的EurekaServer的视频,并尝试作为spring-boot应用程序运行。我需要从下面进行任何操作吗?配置任何东西来使Euraka服务器运行?在运行Euraka服务器之前,我是否还需要启动其他一些服务?在资源文件夹的application.properties中添加任何属性?截至目前,我的application.properties为空,并且出现以下错误。我的Pom文件<?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>com.sc.eurakaserver</groupId><artifactId>EurakaServer</artifactId><version>0.0.1-SNAPSHOT</version><packaging>jar</packaging><name>EurakaServer</name><description>Demo project for Spring Boot</description><parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.3.RELEASE</version> <relativePath /> <!-- lookup parent from repository --></parent><properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <java.version>1.8</java.version> <spring-cloud.version>Finchley.RELEASE</spring-cloud.version></properties><dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId> </dependency><!-- <dependency> <groupId>com.sun.jersey</groupId> <artifactId>jersey-server</artifactId> </dependency> --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency></dependencies>任何人都可以帮助您确定我所缺少的吗?
添加回答
举报
0/150
提交
取消