A simple webflux/kafka spring project
- You build it using
mvn clean package
- You run it using
java -jar
- You need to have a kafka running at
localhost:9092
- You run:
kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic first
- You send to the
localhost:8080/v1/persons
using POST a json withfirst_name
,last_name
anddob
with ISO8601 format (e.g. 2018-12-02) - You observe from the kafka console client the message stored in the
first
kafka topic - You can point your browser to
localhost:8080/
, you will be redirected tolocalhost:8080/v1
, where you'll get a URI Template response, which enumerates the endpoints enabled for this app. - If you use any other method to hit the
/v1/persons
endpoint, you'll get aMETHOD_NOT_ALLOWED
response.