72MiguelGomes / SpringCloudFunctionExample

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spring Cloud Function Example

This project is a simple example how to use spring cloud function.

How to test

curl localhost:8080/sayHello -H "Content-Type: text/plain" -d "Miguel"
curl --location --request POST 'localhost:8080/healthCheckConsumer' \
--header 'Content-Type: application/json' \
--data-raw '{
	"id": 10,
	"name": "Miguel Gomes"
}'

Deploy to AWS

  1. Upload to AWSLambda

  2. Configure the handler name: com.example.spring.integration.AWSLambdaHandler

  3. Add an environment variable with the name of the function: sayHello

About


Languages

Language:Java 100.0%