增加服务发现注册功能
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
@@ -1,3 +1,5 @@
|
||||
spring:
|
||||
application:
|
||||
name: msgexchangeapi
|
||||
profiles:
|
||||
active: dev
|
||||
Reference in New Issue
Block a user