Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为什么我的eureka-server 首页无法显示 #10

Open
jimxu1982 opened this issue Nov 30, 2017 · 3 comments
Open

为什么我的eureka-server 首页无法显示 #10

jimxu1982 opened this issue Nov 30, 2017 · 3 comments

Comments

@jimxu1982
Copy link

1.pom.xml如下

<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>1.5.7.RELEASE</version>
		<relativePath/> 
	</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>Dalston.SR3</spring-cloud.version>
	</properties>
	<dependencies>
		<dependency>
			<groupId>org.springframework.cloud</groupId>
			<artifactId>spring-cloud-starter-eureka-server</artifactId>
		</dependency>		
	</dependencies>
	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>org.springframework.cloud</groupId>
				<artifactId>spring-cloud-dependencies</artifactId>
				<version>${spring-cloud.version}</version>
				<type>pom</type>
				<scope>import</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>

2.application.properties

spring.application.name=eureka-server
server.port=1001
eureka.instance.hostname=localhost
eureka.client.register-with-eureka=false
eureka.client.fetch-registry=false

3.http://localhost:1001/无示显示Dashboard,只返回一个xml
default

@CodingOX
Copy link

CodingOX commented Dec 1, 2017

application.properties 少配置了一个eureka的访问地址?
eureka.client.servericeUrl.defualt=http://127.0.0.1:${server.port}/eureka

@jimxu1982
Copy link
Author

@CodingOX ,还是不对,我这个是通过spring-cloud-starter-eureka-serve 创建服务注册中心,不是服务提供者

@studysai
Copy link

studysai commented Jun 5, 2018

eureka.client.serviceUrl.defaultZone=http://localhost:${server.port}/eureka/
访问时localhost:1001/eureka

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants