-
Notifications
You must be signed in to change notification settings - Fork 0
neovim Java Spring Boot
lamt edited this page Oct 4, 2022
·
4 revisions
Please complete the following tasks:
# Terminal 1
git clone https://github.com/spring-guides/gs-rest-service.git
cd gs-rest-service/complete
./gradlew bootRun# Terminal 2
curl 'http://localhost:8080/greeting?name=hoge'
{"id":1,"content":"Hello, hoge!"}C-c in Terminal 1.
# Terminal 1
cd gs-rest-service/complete
./gradlew bootRun --jvm-debug# Terminal 2
cd gs-rest-service/complete
vi src/main/java/com/example/restservice/GreetingController.java-
space C: Run JdtRefreshDebugConfig command -
F9: Set Breakpoint -
F5: Start Debug
# Terminal 3
curl 'http://localhost:8080/greeting?name=hoge'- Stop at Breakpoint
-
F5: Continue
# Terminal 2
# Output
{"id":1,"content":"Hello, hoge!"}-
F4: Disconnect -
space u: Close dapui
(also F5-> Terminate session)