Skip to content

Commit

Permalink
[BE] Feat: eureka 설정 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
shkum0330 committed Sep 20, 2023
1 parent 7bc6f3d commit cdc29b1
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 101 deletions.
3 changes: 2 additions & 1 deletion backend/share/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.mapstruct:mapstruct:1.4.2.Final'
// implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign'
implementation 'io.netty:netty-all:4.1.24.Final'
implementation 'org.apache.commons:commons-lang3:3.0'
Expand All @@ -50,6 +50,7 @@ dependencies {
testImplementation 'com.h2database:h2'
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc'
testImplementation 'org.springframework.boot:spring-boot-starter-test'

}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;

//@EnableFeignClients
@EnableEurekaClient
@EnableJpaAuditing
@SpringBootApplication
public class ShareApplication {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import java.util.Optional;

@FeignClient(name = "member-manage",url = "http://a502.store/member-manage")
@FeignClient(name = "member-manage", url = "http://a502.store/member-manage")
public interface MemberFeign {
@GetMapping("/{memberId}")
Optional<MemberResponse> getMemberDetail(@PathVariable long memberId);
Expand Down

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion backend/share/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ logging:
eureka:
client:
service-url:
defaultZone:${EUREKA_URL}
defaultZone: ${EUREKA_URL}

0 comments on commit cdc29b1

Please sign in to comment.