Spring Boot Microservices Tutorial - Part 4 - Spring Cloud OpenFeign & Testing with Wiremock

preview_player
Показать описание
In this Spring Boot 3 Microservices tutorial series, we will learn how to build microservices using Spring Boot and Spring Cloud.

This is part 4 of the series, in this part, we will cover:
- Integrating Synchronous Communication using Spring Cloud OpenFeign
- Write Integration Tests using Wire mock
Рекомендации по теме
Комментарии
Автор

While runnning OrderServiceApplicationTests class I am getting the following error:
Table 'test.orders' doesn't exist. Not sure why it is taking database name as 'test'

SunilKumar-gzkt
Автор

waiting for more vedios on Spring Boot Microservices Tutorial's

GopalaKrishna-nslb
Автор

Thanks for the videos, please increase the font size of code and change the background of IDE bcoz code is not visible properly.

sanketkadam
Автор

Hi Sai, Can we try to implement asynchronous communication in this setup by referring to your previous microservices tutorial?

OG_
Автор

the order-service starts up fine but running the post query on postman gives me a error code 500: "java.net.ConnectException: Connection refused: no further information" i tried changing the ports but still not able to fix the issue

diptapanda
Автор

I have the question: If we have four services A, B, C, D in our project and B, C, D services needs to call API of A service. So, we need to define Feign client for service A in B, C, D services and that is duplicate 3 times, right? Is there anyway to define Feign client for A service one time only and it can be shared among 3 services B, C, D?

waterfire
Автор

I think we missed a part here, after placing an order we must subtract the inventory item against that skuCode.

ayusharyan
Автор

Why is the mysql test container initialized in a static block instead of inside a @BeforeAll method?

danielsundersingh
Автор

Which K8s we are going to use? I mean EKS, ECS, GKE, AKS, Kubeadm in EC2, microK8s, etc?

aadiraj
Автор

java.sql.SQLException: Access denied for user 'root'@'172.24.0.1' (using password: YES)
How to fix this issue?

vind
Автор

I had set the line in my main .properties file. However, when running the tests and configuring them to handle WireMock, it was giving the following error:
{
"type": "about:blank",
"title": "Not Found",
"status": 404,
"detail": "No static resource api/order.",
"instance": "/api/order"
}

java.lang.AssertionError: 1 expectation failed.
Expected status code <201> but was <404>.

I removed the line from the properties file and added i was using just /order. to the controller, and it worked. Do you know why? Since there isn't much difference.

mateuslevi