Skip to content

Commit 13bd8aa

Browse files
committed
bug fix
1 parent dc4fde7 commit 13bd8aa

File tree

8 files changed

+12
-13
lines changed

8 files changed

+12
-13
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,12 @@ docker run -d -p 9411:9411 openzipkin/zipkin
5555

5656
---
5757

58-
Health : http://localhost:9191/actuator/health
59-
Eureka : http://localhost:8761/
60-
Department GetMethod: http://localhost:9191/departments/1
61-
Hystrix: http://localhost:9295/hystrix
62-
http://localhost:9295/hystrix/monitor?stream=http%3A%2F%2Flocalhost%3A9191%2Factuator%2Fhystrix.stream
58+
Project Links:
59+
- Health : http://localhost:9191/actuator/health
60+
- Eureka : http://localhost:8761/
61+
- Department GetMethod: http://localhost:9191/departments/1
62+
- Hystrix: http://localhost:9295/hystrix
63+
- http://localhost:9295/hystrix/monitor?stream=http%3A%2F%2Flocalhost%3A9191%2Factuator%2Fhystrix.stream
6364

6465

6566

api-gateway/src/main/java/com/cevher/ms/cloud/gateway/APIGatewayApplication.java renamed to api-gateway/src/main/java/com/cevher/ms/apigateway/APIGatewayApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.cevher.ms.cloud.gateway;
1+
package com.cevher.ms.apigateway;
22

33
import org.springframework.boot.SpringApplication;
44
import org.springframework.boot.autoconfigure.SpringBootApplication;

api-gateway/src/main/java/com/cevher/ms/cloud/gateway/FallBackResource.java renamed to api-gateway/src/main/java/com/cevher/ms/apigateway/web/rest/FallBackResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.cevher.ms.cloud.gateway;
1+
package com.cevher.ms.apigateway.web.rest;
22

33
import org.springframework.web.bind.annotation.GetMapping;
44
import org.springframework.web.bind.annotation.RestController;

api-gateway/src/test/java/com/cevher/ms/cloud/gateway/APIGatewayApplicationTests.java renamed to api-gateway/src/test/java/com/cevher/ms/apigateway/APIGatewayApplicationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.cevher.ms.cloud.gateway;
1+
package com.cevher.ms.apigateway;
22

33
import org.junit.Ignore;
44
import org.junit.jupiter.api.Test;

department-service/src/main/java/com/cevher/ms/department/web/rest/DepartmentController.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ public Department findDepartmentById(@PathVariable("id") Long departmentId) {
3131
log.info("findDepartmentById method of DepartmentController");
3232
return departmentService.findDepartmentById(departmentId);
3333
}
34+
3435
}

person-service/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
<artifactId>spring-cloud-starter-sleuth</artifactId>
6565
</dependency>
6666

67-
6867
<dependency>
6968
<groupId>org.springframework.boot</groupId>
7069
<artifactId>spring-boot-starter-test</artifactId>

task-service/src/main/java/com/cevher/ms/task/domain/Task.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,4 @@ public class Task {
2828
private Long createdPersonId;
2929
private Long departmentId;
3030

31-
32-
33-
}
31+
}

task-service/src/main/java/com/cevher/ms/task/service/TaskService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public ResponseVM findByTaskIdWithPersonAndDepartment(Long id) {
4747

4848
// TODO : not for production.
4949
// TODO : We can use Message Broker for example Apache Kafka
50-
PersonVM user = restTemplate.getForObject(
50+
PersonVM person = restTemplate.getForObject(
5151
"http://person-service/people/" + task.get().getAssignedPersonId()
5252
, PersonVM.class);
5353

0 commit comments

Comments
 (0)