|
@@ -1,16 +1,17 @@
|
|
|
spring:
|
|
|
application:
|
|
|
name: dc-server
|
|
|
- jmx:
|
|
|
+ jmx:
|
|
|
enabled: false
|
|
|
server:
|
|
|
port: 9999
|
|
|
maxHttpHeaderSize: 102400
|
|
|
-
|
|
|
+
|
|
|
eureka:
|
|
|
instance:
|
|
|
+ prefer-ip-address: true
|
|
|
hostname: localhost
|
|
|
- server:
|
|
|
+ server:
|
|
|
enableSelfPreservation: false #关闭自我保护
|
|
|
evictionIntervalTimerInMs: 5000 #清理间隔(单位毫秒,默认是60*1000)
|
|
|
client:
|
|
@@ -19,4 +20,3 @@ eureka:
|
|
|
serviceUrl:
|
|
|
defaultZone: http://${eureka.instance.hostname}:${server.port}/eureka/
|
|
|
|
|
|
-
|