Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-backend
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
framework
cloud-backend
Commits
5756a7a6
Commit
5756a7a6
authored
Aug 23, 2021
by
袁伟铭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.0.0
parent
d4ea7f62
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
21 additions
and
15 deletions
+21
-15
api-server/src/main/resources/bootstrap.yml
+3
-2
config-server/src/main/resources/application.yml
+4
-2
eureka-server/src/main/resources/application.yml
+2
-3
file-server/src/main/resources/bootstrap.yml
+3
-2
gateway-server/src/main/resources/bootstrap.yml
+3
-2
sys-server/src/main/resources/bootstrap.yml
+3
-2
user-server/src/main/resources/bootstrap.yml
+3
-2
No files found.
api-server/src/main/resources/bootstrap.yml
View file @
5756a7a6
...
...
@@ -8,11 +8,12 @@ spring:
discovery
:
enabled
:
true
service-id
:
CONFIG-SERVER
uri
:
http://127.0.0.1:8500/
eureka
:
instance
:
prefer-ip-address
:
true
client
:
service
U
rl
:
service
-u
rl
:
defaultZone
:
http://admin:123456@127.0.0.1:9900/eureka/
# instance:
# lease-renewal-interval-in-seconds: 2 #每间隔1s,向服务端发送一次心跳,证明自己依然"存活"
...
...
config-server/src/main/resources/application.yml
View file @
5756a7a6
...
...
@@ -16,9 +16,11 @@ spring:
# password: Dk2019123456
# search-paths: config-files #配置git仓库下的相对地址,可以配置多个,用 , 分割
eureka
:
instance
:
prefer-ip-address
:
true
client
:
service
U
rl
:
defaultZone
:
http://admin:123456@
localhost
:9900/eureka/
service
-u
rl
:
defaultZone
:
http://admin:123456@
127.0.0.1
:9900/eureka/
management
:
endpoints
:
...
...
eureka-server/src/main/resources/application.yml
View file @
5756a7a6
...
...
@@ -8,8 +8,6 @@ spring:
name
:
admin
password
:
123456
eureka
:
instance
:
preter-ip-address
:
true
client
:
# 表示是否将自己注册到Eureka Server,默认为true。
register-with-eureka
:
false
...
...
@@ -17,4 +15,4 @@ eureka:
fetch-registry
:
false
# 设置与Eureka Server交互的地址,查询服务和注册服务都需要依赖这个地址。默认是http://localhost:8000/eureka ;多个地址可使用,分隔
service-url
:
defaultZone
:
http://
admin:123456@localhost:9900
/eureka/
defaultZone
:
http://
${spring.security.user.name}:${spring.security.user.password}@${spring.cloud.client.ip-address}:${server.port}
/eureka/
\ No newline at end of file
file-server/src/main/resources/bootstrap.yml
View file @
5756a7a6
...
...
@@ -8,11 +8,12 @@ spring:
discovery
:
enabled
:
true
service-id
:
CONFIG-SERVER
uri
:
http://127.0.0.1:8500/
eureka
:
instance
:
prefer-ip-address
:
true
client
:
service
U
rl
:
service
-u
rl
:
defaultZone
:
http://admin:123456@127.0.0.1:9900/eureka/
# instance:
# lease-renewal-interval-in-seconds: 2 #每间隔1s,向服务端发送一次心跳,证明自己依然"存活"
...
...
gateway-server/src/main/resources/bootstrap.yml
View file @
5756a7a6
...
...
@@ -8,11 +8,12 @@ spring:
discovery
:
enabled
:
true
service-id
:
CONFIG-SERVER
uri
:
http://127.0.0.1:8500/
eureka
:
instance
:
prefer-ip-address
:
true
client
:
service
U
rl
:
service
-u
rl
:
defaultZone
:
http://admin:123456@127.0.0.1:9900/eureka/
# instance:
# lease-renewal-interval-in-seconds: 2 #每间隔1s,向服务端发送一次心跳,证明自己依然"存活"
...
...
sys-server/src/main/resources/bootstrap.yml
View file @
5756a7a6
...
...
@@ -8,11 +8,12 @@ spring:
discovery
:
enabled
:
true
service-id
:
CONFIG-SERVER
uri
:
http://127.0.0.1:8500/
eureka
:
instance
:
prefer-ip-address
:
true
client
:
service
U
rl
:
service
-u
rl
:
defaultZone
:
http://admin:123456@127.0.0.1:9900/eureka/
# instance:
# lease-renewal-interval-in-seconds: 2 #每间隔1s,向服务端发送一次心跳,证明自己依然"存活"
...
...
user-server/src/main/resources/bootstrap.yml
View file @
5756a7a6
...
...
@@ -8,11 +8,12 @@ spring:
discovery
:
enabled
:
true
service-id
:
CONFIG-SERVER
uri
:
http://127.0.0.1:8500/
eureka
:
instance
:
prefer-ip-address
:
true
client
:
service
U
rl
:
service
-u
rl
:
defaultZone
:
http://admin:123456@127.0.0.1:9900/eureka/
# instance:
# lease-renewal-interval-in-seconds: 2 #每间隔1s,向服务端发送一次心跳,证明自己依然"存活"
...
...
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