- A simple springboot api using H2 in memory, java 19 using sdk/springboot cli tools, Gitpod and Thunder Extension
- Enjoy
sdk install springboot
spring init --dependencies=web,jpa,h2 --java-version=20 --build=maven myprojectname
spring.h2.console.enabled=true
spring.h2.console.path=/h2-console
spring.h2.console.settings.trace=false
spring.h2.console.settings.web-allow-others=false
- Check the gitpod url on Ports tab
http://gitpod-url:8080/h2-console
##H2 console available at '/h2-console'. Database available at 'jdbc:h2:mem:9914428f-357d-4992-a8a0-ac78a1e6805e'
mvn spring-boot:run
{"nome":"CHANGEALLVALUES","preco":1200.0,"pessoaInstrutora":"CHANGEALLVALUES"}
Sample return:
{
"id": 2,
"nome": "CHANGEALLVALUES",
"preco": 1200.0,
"pessoaInstrutora": "CHANGEALLVALUES"
}
chmod +x updateGitpodRefsUrl.sh
./updateGitpodRefsUrl.sh ./thunder-collection_Javaweek.json
thunder-collection_Javaweek.json
./git-push-all.sh
Try cleaning the Java language server workspace:
Cmd + Shift + P to show the command palette
Choose or type "Java: Clean the Java language server workspace"
Restart and Delete
It just worked for me.