For further reference, please consider the following sections:
- Official Gradle documentation
- Spring Boot Gradle Plugin Reference Guide
- Create an OCI image
- Spring Web
The following guides illustrate how to use some features concretely:
- Building a RESTful Web Service
- Serving Web Content with Spring MVC
- Building REST services with Spring
These additional references should also help you:
Run this command:
./gradlew bootRun
Spring Boot instance will boot up and bootRun will show as executing when it's ready
- For port forwarding:
docker run -d --name test-mysql -e MYSQL_ROOT_PASSWORD=abc123 -p 3307:3306 mysql - For no port forwarding:
docker run --name test-mysql -e MYSQL_ROOT_PASSWORD=[pick something, but remember it] -d mysql
docker exec -it container_name bash
mysql -uroot -p
mysql --host=127.0.0.1 --port=3307 -u root -p