SpringBoot MySQL Deployment Guide
SpringBoot MySQL Deployment Guide
- Use https://start.spring.io
- Java version: 17
- In application.properties:
- spring.datasource.url=jdbc:mysql://<host>:<port>/<db>
- spring.datasource.username=<username>
- spring.datasource.password=<password>
- spring.jpa.hibernate.ddl-auto=update
- Go to https://railway.app
- Use Maven image to build .jar, then run with JDK image
- git init
- git add .
- Go to https://render.com