This is the consumer service for CDC expert talk.
Make sure you have jdk and mvn installed and added in the path
mvn spring-boot:run -Dserver.port=9000
curl -X POST \
http://localhost:9000/order \
-H 'content-type: application/json' \
-d '{
"productId":"1",
"quantity":"2",
"userId":"myId"
}'
{
"orderId": "7998289398179"
}
mvn clean install
or mvn test
It will create Pact files in target\pacts folder.