9 changed files with 5 additions and 96 deletions
@ -1,40 +0,0 @@ |
|||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" |
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|
||||
<parent> |
|
||||
<artifactId>rbsservice</artifactId> |
|
||||
<groupId>com.rbs.springcloud</groupId> |
|
||||
<version>1.0-SNAPSHOT</version> |
|
||||
</parent> |
|
||||
<modelVersion>4.0.0</modelVersion> |
|
||||
|
|
||||
<artifactId>payment-eureka-app</artifactId> |
|
||||
|
|
||||
<dependencies> |
|
||||
<!-- eureka client --> |
|
||||
<dependency> |
|
||||
<groupId>org.springframework.cloud</groupId> |
|
||||
<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId> |
|
||||
</dependency> |
|
||||
|
|
||||
<dependency> |
|
||||
<groupId>org.springframework.boot</groupId> |
|
||||
<artifactId>spring-boot-starter-web</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>org.springframework.boot</groupId> |
|
||||
<artifactId>spring-boot-starter-actuator</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>org.projectlombok</groupId> |
|
||||
<artifactId>lombok</artifactId> |
|
||||
<optional>true</optional> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>org.springframework.boot</groupId> |
|
||||
<artifactId>spring-boot-starter-test</artifactId> |
|
||||
<scope>test</scope> |
|
||||
</dependency> |
|
||||
</dependencies> |
|
||||
</project> |
|
||||
@ -1,14 +0,0 @@ |
|||||
package com.eureka.server.springclould; |
|
||||
|
|
||||
import org.springframework.boot.SpringApplication; |
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication; |
|
||||
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; |
|
||||
|
|
||||
@SpringBootApplication |
|
||||
@EnableEurekaServer |
|
||||
public class EurekaServerApplication { |
|
||||
|
|
||||
public static void main(String[] args) { |
|
||||
SpringApplication.run(EurekaServerApplication.class, args); |
|
||||
} |
|
||||
} |
|
||||
@ -1,11 +0,0 @@ |
|||||
server: |
|
||||
port: 7002 |
|
||||
eureka: |
|
||||
instance: |
|
||||
hostname: eureka7002.com #eureka服务端的实例名称 |
|
||||
client: |
|
||||
register-with-eureka: false #false表示不向注册中心注册自己。 |
|
||||
fetch-registry: false #false表示自己端就是注册中心,我的职责就是维护服务实例,并不需要去检索服务 |
|
||||
service-url: |
|
||||
#设置与eureka server交互的地址和注册服务都需要依赖这个地址 |
|
||||
defaultZone: http://eureka7002.com:7002/eureka/ #集群就是指向其他的eureka |
|
||||
@ -1,11 +0,0 @@ |
|||||
server: |
|
||||
port: 7002 |
|
||||
eureka: |
|
||||
instance: |
|
||||
hostname: eureka7002.com #eureka服务端的实例名称 |
|
||||
client: |
|
||||
register-with-eureka: false #false表示不向注册中心注册自己。 |
|
||||
fetch-registry: false #false表示自己端就是注册中心,我的职责就是维护服务实例,并不需要去检索服务 |
|
||||
service-url: |
|
||||
#设置与eureka server交互的地址和注册服务都需要依赖这个地址 |
|
||||
defaultZone: http://eureka7002.com:7002/eureka/ #集群就是指向其他的eureka |
|
||||
Binary file not shown.
Loading…
Reference in new issue