spring boot/java CRUD template
brew tap AdoptOpenJDK/openjdk
brew install --cask adoptopenjdk11
java -version
brew install gradle
- Run application from command line:
./gradlew bootRun
- To interact with H2 db:
http://localhost:8080/h2-console
(username and password in application.yml) - cURL the endpoint from command line:
curl --location --request POST 'http://localhost:8080/{INSERT ENDPOINT HERE}' \
--header 'Content-Type: application/json' \
--data-raw 'INSERT JSON HERE'
Located in src/test/java
. To run from command line, ./gradlew clean build