Spring Boot provides a convention-oriented way to run Java applications and their infrastructure dependencies. A Gradle bootRun task starts the application and launches its PostgreSQL dependency through Testcontainers, while the framework manages application startup and integrated database migration behavior. section 2.3.1 section 2.4.2
Spring Boot’s developer workflow includes:
- Start the service with ./gradlew bootRun and wait for the application-started log message before sending requests. section 2.3.1
- Use Testcontainers to provide PostgreSQL during development, avoiding separate dependency setup for the application run. section 2.3.1
- Apply database schema changes through Flyway migrations when the application starts, requiring only the migration SQL in the described change. section 2.4.2
./gradlew bootRun
Run the Java service with Gradle’s bootRun task. section 2.3.1








