Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
SpringCloudEureka
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiachenqi
SpringCloudEureka
Commits
f4476f1d
Commit
f4476f1d
authored
Jul 04, 2019
by
XCQi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加配置
parent
d7a6c760
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
pom.xml
pom.xml
+5
-0
application.properties
src/main/resources/application.properties
+7
-1
No files found.
pom.xml
View file @
f4476f1d
...
@@ -25,6 +25,11 @@
...
@@ -25,6 +25,11 @@
<artifactId>
spring-cloud-starter-netflix-eureka-server
</artifactId>
<artifactId>
spring-cloud-starter-netflix-eureka-server
</artifactId>
</dependency>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-actuator
</artifactId>
</dependency>
<dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<artifactId>
spring-boot-starter-test
</artifactId>
...
...
src/main/resources/application.properties
View file @
f4476f1d
spring.application.name
=
spring-cloud-eureka
spring.application.name
=
spring-cloud-eureka
server.port
=
8000
server.port
=
8761
# 是否从其他的服务中心同步服务列表
eureka.client.fetch-registry
=
false
eureka.client.fetch-registry
=
false
# 是否把自己作为服务注册到其他服务注册中心
eureka.client.register-with-eureka
=
false
eureka.client.register-with-eureka
=
false
eureka.instance.hostname
=
localhost
# Eureka默认的服务地址空间信息配置
eureka.client.service-url.defaultZone
=
http://${eureka.instance.hostname}:${server.port}/eureka/
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment