Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dict
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
陈洁
dict
Commits
890de97f
Commit
890de97f
authored
Nov 16, 2018
by
yong.huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eureka关掉自我保护机制
parent
ce6078fc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
10 deletions
+5
-10
eureka-server/src/main/resources/application.yml
+5
-2
springboot-demo/pom.xml
+0
-4
springboot-demo/src/main/resources/application.yml
+0
-4
No files found.
eureka-server/src/main/resources/application.yml
View file @
890de97f
...
...
@@ -7,5 +7,8 @@ server:
eureka
:
client
:
registerWithEureka
:
false
#false:不作为一个客户端注册到注册中心
fetchRegistry
:
false
#为true时,可以启动,但报异常:Cannot execute request on any known server
registerWithEureka
:
false
#是否向Eureka注册服务。该应用为服务注册中心,不需要自注册,设置为false
fetchRegistry
:
false
#是否检索服务。该应用为服务注册中心,职责为注册和发现服务,无需检索服务,设置为false
server
:
waitTimeInMsWhenSyncEmpty
:
0
#设置同步为空时的等待时间。默认5 * minutes
enableSelfPreservation
:
false
#自我保护
springboot-demo/pom.xml
View file @
890de97f
...
...
@@ -68,10 +68,6 @@
<dependency>
<groupId>
org.mybatis.spring.boot
</groupId>
<artifactId>
mybatis-spring-boot-starter
</artifactId>
<<<<<<
< HEAD
=======
<version
>
${mybatis3.version}
</version>
>>>>>>> 4f38f52c0b2c56dda5ef49af496bc52279a4ab2e
</dependency>
<dependency>
...
...
springboot-demo/src/main/resources/application.yml
View file @
890de97f
spring
:
application
:
<<<<<<< HEAD
name
:
springboot-demo
=======
name
:
dictionary
>
>>>>>>
4f38f52c0b2c56dda5ef49af496bc52279a4ab2e
redis
:
host
:
115.159.67.166
port
:
5289
...
...
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