增加服务发现注册功能

This commit is contained in:
zhouxiunai
2019-01-14 10:58:19 +08:00
parent 9e7d9aca77
commit 33c63274d5
4 changed files with 29 additions and 1 deletions
@@ -2,10 +2,12 @@ package com.gzzn.omms.msgexchangeapi;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.scheduling.annotation.EnableScheduling;
@SpringBootApplication
@EnableScheduling
@EnableEurekaClient
public class MsgexchangeApiApplication {
public static void main(String[] args) {
+7 -1
View File
@@ -84,4 +84,10 @@ elasticsearch:
pool: 5
#注意cluster.name需要与config/elasticsearch.yml中的cluster.name一致
cluster:
name: docker-cluster
name: docker-cluster
eureka:
client:
service-url:
defaultZone: http://130.120.3.231:94/eureka/
instance:
prefer-ip-address: true
+2
View File
@@ -1,3 +1,5 @@
spring:
application:
name: msgexchangeapi
profiles:
active: dev