Commit 890de97f by yong.huang

eureka关掉自我保护机制

parent ce6078fc
...@@ -7,5 +7,8 @@ server: ...@@ -7,5 +7,8 @@ server:
eureka: eureka:
client: client:
registerWithEureka: false #false:不作为一个客户端注册到注册中心 registerWithEureka: false #是否向Eureka注册服务。该应用为服务注册中心,不需要自注册,设置为false
fetchRegistry: false #为true时,可以启动,但报异常:Cannot execute request on any known server fetchRegistry: false #是否检索服务。该应用为服务注册中心,职责为注册和发现服务,无需检索服务,设置为false
server:
waitTimeInMsWhenSyncEmpty: 0 #设置同步为空时的等待时间。默认5 * minutes
enableSelfPreservation: false #自我保护
...@@ -68,10 +68,6 @@ ...@@ -68,10 +68,6 @@
<dependency> <dependency>
<groupId>org.mybatis.spring.boot</groupId> <groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId> <artifactId>mybatis-spring-boot-starter</artifactId>
<<<<<<< HEAD
=======
<version>${mybatis3.version}</version>
>>>>>>> 4f38f52c0b2c56dda5ef49af496bc52279a4ab2e
</dependency> </dependency>
<dependency> <dependency>
......
spring: spring:
application: application:
<<<<<<< HEAD
name: springboot-demo
=======
name: dictionary name: dictionary
>>>>>>> 4f38f52c0b2c56dda5ef49af496bc52279a4ab2e
redis: redis:
host: 115.159.67.166 host: 115.159.67.166
port: 5289 port: 5289
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment