This a microservice for user registration that connect with a email-microservice for send user email
- Java - Version: 17
- Spring - Version: 3.1.5
mvn clean pakage -Dspring.rabbitmq.addresses=your_host_url
After that:
mvn spring-boot:run -Dspring.rabbitmq.addresses=your_host_url
And then, you see logs with message Started application on port 8081
And you can open in localhost:8081
POST
Body:
{
"name": "Jonh Doe",
"Email": "user@email.com"
}
Return:
{
"userId": "3faf6131-4fa4215-51fasfd",
"name": "Jonh Doe",
"Email": "user@email.com"
}
And then you will receive in your email inbox the message:
Olá, Jonh Doe! Seu cadastro foi realizado com sucesso!