修正
This commit is contained in:
		@@ -11,7 +11,7 @@ spring:
 | 
				
			|||||||
eureka:
 | 
					eureka:
 | 
				
			||||||
  client:
 | 
					  client:
 | 
				
			||||||
    serviceUrl:
 | 
					    serviceUrl:
 | 
				
			||||||
      defaultZone: http://localhost:8888/eureka
 | 
					      defaultZone: http://localhost:8801/eureka, http://localhost:8802/eureka
 | 
				
			||||||
  instance:
 | 
					  instance:
 | 
				
			||||||
    prefer-ip-address: true
 | 
					    prefer-ip-address: true
 | 
				
			||||||
    instance-id: ${spring.cloud.client.ip-address}:${server.port}
 | 
					    instance-id: ${spring.cloud.client.ip-address}:${server.port}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,7 +11,7 @@ spring:
 | 
				
			|||||||
eureka:
 | 
					eureka:
 | 
				
			||||||
  client:
 | 
					  client:
 | 
				
			||||||
    serviceUrl:
 | 
					    serviceUrl:
 | 
				
			||||||
      defaultZone: http://localhost:8888/eureka
 | 
					      defaultZone: http://localhost:8801/eureka, http://localhost:8802/eureka
 | 
				
			||||||
  instance:
 | 
					  instance:
 | 
				
			||||||
    prefer-ip-address: true
 | 
					    prefer-ip-address: true
 | 
				
			||||||
    instance-id: ${spring.cloud.client.ip-address}:${server.port}
 | 
					    instance-id: ${spring.cloud.client.ip-address}:${server.port}
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										18
									
								
								eureka-service/src/main/resources/application-01.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								eureka-service/src/main/resources/application-01.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,18 @@
 | 
				
			|||||||
 | 
					server:
 | 
				
			||||||
 | 
					  port: 8801
 | 
				
			||||||
 | 
					spring:
 | 
				
			||||||
 | 
					  application:
 | 
				
			||||||
 | 
					    name: eurekaserver
 | 
				
			||||||
 | 
					eureka:
 | 
				
			||||||
 | 
					  instance:
 | 
				
			||||||
 | 
					    hostname: eureka01
 | 
				
			||||||
 | 
					    prefer-ip-address: false
 | 
				
			||||||
 | 
					    instance-id: ${spring.cloud.client.ip-address}:${server.port}
 | 
				
			||||||
 | 
					  client:
 | 
				
			||||||
 | 
					    fetch-registry: true
 | 
				
			||||||
 | 
					    register-with-eureka: false
 | 
				
			||||||
 | 
					    serviceUrl:
 | 
				
			||||||
 | 
					      defaultZone: http://eureka02:8802/eureka, http://eureka01:8801/eureka
 | 
				
			||||||
 | 
					  server:
 | 
				
			||||||
 | 
					    enable-self-preservation: false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
							
								
								
									
										17
									
								
								eureka-service/src/main/resources/application-02.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								eureka-service/src/main/resources/application-02.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,17 @@
 | 
				
			|||||||
 | 
					server:
 | 
				
			||||||
 | 
					  port: 8802
 | 
				
			||||||
 | 
					spring:
 | 
				
			||||||
 | 
					  application:
 | 
				
			||||||
 | 
					    name: eurekaserver
 | 
				
			||||||
 | 
					eureka:
 | 
				
			||||||
 | 
					  instance:
 | 
				
			||||||
 | 
					    hostname: eureka02
 | 
				
			||||||
 | 
					    prefer-ip-address: false
 | 
				
			||||||
 | 
					    instance-id: ${spring.cloud.client.ip-address}:${server.port}
 | 
				
			||||||
 | 
					  client:
 | 
				
			||||||
 | 
					    fetch-registry: true
 | 
				
			||||||
 | 
					    register-with-eureka: false
 | 
				
			||||||
 | 
					    serviceUrl:
 | 
				
			||||||
 | 
					      defaultZone: http://eureka01:8801/eureka, http://eureka02:8802/eureka
 | 
				
			||||||
 | 
					  server:
 | 
				
			||||||
 | 
					    enable-self-preservation: false
 | 
				
			||||||
@@ -1,10 +0,0 @@
 | 
				
			|||||||
server:
 | 
					 | 
				
			||||||
  port: 8888
 | 
					 | 
				
			||||||
eureka:
 | 
					 | 
				
			||||||
  client:
 | 
					 | 
				
			||||||
    fetch-registry: false
 | 
					 | 
				
			||||||
    register-with-eureka: false
 | 
					 | 
				
			||||||
    serviceUrl:
 | 
					 | 
				
			||||||
      defaultZone: http://localhost:8888/eureka
 | 
					 | 
				
			||||||
  server:
 | 
					 | 
				
			||||||
    enable-self-preservation: false
 | 
					 | 
				
			||||||
@@ -1,5 +1,3 @@
 | 
				
			|||||||
server:
 | 
					 | 
				
			||||||
  port: 8101
 | 
					 | 
				
			||||||
spring:
 | 
					spring:
 | 
				
			||||||
  application:
 | 
					  application:
 | 
				
			||||||
    name: userservice
 | 
					    name: userservice
 | 
				
			||||||
@@ -11,7 +9,7 @@ spring:
 | 
				
			|||||||
eureka:
 | 
					eureka:
 | 
				
			||||||
  client:
 | 
					  client:
 | 
				
			||||||
    serviceUrl:
 | 
					    serviceUrl:
 | 
				
			||||||
      defaultZone: http://localhost:8888/eureka
 | 
					      defaultZone: http://localhost:8801/eureka, http://localhost:8802/eureka
 | 
				
			||||||
  instance:
 | 
					  instance:
 | 
				
			||||||
    prefer-ip-address: true
 | 
					    prefer-ip-address: true
 | 
				
			||||||
    instance-id: ${spring.cloud.client.ip-address}:${server.port}
 | 
					    instance-id: ${spring.cloud.client.ip-address}:${server.port}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user