Conversation
| @AllArgsConstructor | ||
| @Data | ||
| @ToString | ||
| public class ApartmentRecord { |
| @@ -1,2 +1,2 @@ | |||
| spring.application.name=realtor-service | |||
| feign.hystrix.enabled=true | |||
| feign.hystrix.enabled=true No newline at end of file | |||
There was a problem hiding this comment.
I guess, to separate different types of configuration and keep clean code, but lets @banadiga answer this.
There was a problem hiding this comment.
It will affect next changes. In a case when we add a new property to the end of the file, we will get a diff with 2 line (but we changed only one.)
| @@ -1,5 +1,7 @@ | |||
| package com.lohika.jclub.storage.client; | |||
|
|
|||
| import org.springframework.hateoas.ResourceSupport; | |||
| @@ -0,0 +1 @@ | |||
| distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.0/apache-maven-3.5.0-bin.zip | |||
There was a problem hiding this comment.
do not commit .mvn/wrapper/maven-wrapper.properties
There was a problem hiding this comment.
Also there is client-service/.mvn/wrapper/maven-wrapper.jar that is binary file, and which also should be removed.
|
|
||
| @Slf4j | ||
| @RestController | ||
| public class ClientController { |
There was a problem hiding this comment.
i would like to see some integration tests
There was a problem hiding this comment.
We will create tests in next change-set using test-containers.
| PagedResources<Apartment> list = storageServiceClient.list(); | ||
| Collection<Apartment> content = list.getContent(); | ||
| return new PagedResources<>(content, list.getMetadata()); | ||
|
|
|
|
||
| @GetMapping("/apartmentsPaged") | ||
| public PagedResources<Apartment> getApartmentsPaged(Pageable pageable, | ||
| PagedResourcesAssembler assembler) { |
There was a problem hiding this comment.
Which line length do you use ? Looks like you may move up this argument and save pretty code style.
| @@ -0,0 +1 @@ | |||
| feign.hystrix.enabled=true No newline at end of file | |||
There was a problem hiding this comment.
move to client-service/src/main/resources/application.properties
| @@ -1,2 +1,2 @@ | |||
| spring.application.name=realtor-service | |||
| feign.hystrix.enabled=true | |||
| feign.hystrix.enabled=true No newline at end of file | |||
There was a problem hiding this comment.
It will affect next changes. In a case when we add a new property to the end of the file, we will get a diff with 2 line (but we changed only one.)
Added client service
registered in zuul
updated configuration