diff --git a/springcloud-service-eureka/src/main/java/com/kwan/springcloud/EurekaApplication.java b/springcloud-service-eureka/src/main/java/com/kwan/springcloud/EurekaApplication.java index 55d1741c4097aa54be43ee8b75c1ce2647142f8c..b1ff70b1155cf7e02d8cfb0155387e3363d5ab7e 100644 --- a/springcloud-service-eureka/src/main/java/com/kwan/springcloud/EurekaApplication.java +++ b/springcloud-service-eureka/src/main/java/com/kwan/springcloud/EurekaApplication.java @@ -2,6 +2,7 @@ package com.kwan.springcloud; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; @EnableEurekaServer @SpringBootApplication diff --git a/springcloud-service-eureka/src/main/resources/application.yaml b/springcloud-service-eureka/src/main/resources/application.yaml index 872465fa2c27f99895b44bb5930abdce5c05b2da..806a3768c959b89b80f0ce05c684a6c4dd68b2ae 100644 --- a/springcloud-service-eureka/src/main/resources/application.yaml +++ b/springcloud-service-eureka/src/main/resources/application.yaml @@ -1,6 +1,6 @@ #端口号 server: - port: 8761 + port: 8766 spring: application: