Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
themeEmacs
titleapplication.properties
server.port=8761

eureka.client.register-with-eureka=false
eureka.client.fetch-registry=false

logging.level.com.netflix.eureka=OFF
logging.level.com.netflix.discovery=OFF
Code Block
languagejava
themeEmacs
titlepom.xml
<!-- Eureka Server -->
<dependency>
   <groupId>org.springframework.cloud</groupId>
   <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
</dependency>
Code Block
languagejava
themeEmacs
titleapplication
@EnableEurekaServer
@SpringBootApplication
public class EurekaServiceregistryApplication {

   public static void main(String[] args) {
      SpringApplication.run(EurekaServiceregistryApplication.class, args);
   }
}

...

Code Block
languagejava
themeEmacs
titleapplication.properties
spring.profiles.active=local

spring.application.name=lobbyapi
# N.B. this is the default:

# 앞장에서 설정한 콘피그 서버 Url입니다.
spring.cloud.config.uri=http://localhost:8888

management.security.enabled=false

Code Block
languagejava
themeEmacs
titlepom.xml
<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency>
Code Block
languagejava
themeEmacs
titleapplication
@EnableDiscoveryClient
@SpringBootApplication
public class LobbyapiApplication {

   public static void main(String[] args) {
      SpringApplication.run(LobbyapiApplication.class, args);
   }
}

...