- Install JDK-17 or higher
java -version
//Verify you are on JDK17
cd c:\path\to\person-api
mvnw.cmd clean install
java -jar c:\path\to\person-api\target\person-api-0.0.1-SNAPSHOT.jar
java -version
//Verify you are on JDK17
cd /path/to/person-api
./mvnw clean install
java -jar ./target/person-api-0.0.1-SNAPSHOT.jar
curl --location 'localhost:8080/people' \
--header 'Content-Type: application/json' \
--data '{
"firstName": "Monika",
"lastName": "Smith"
}'
curl --location 'localhost:8080/people/xxxxxx-xxxx-xxxxxx-xxxxxx'
Get the code running your favorite IDE so we can do some live coding.
- This code uses Project Lombok...
- For IDEA: Make sure
annotation processing
is enabled and the Lombok plugin is installed - Make sure you are using a recent version of your IDE