spring-guides / gs-accessing-data-mysql

Accessing data with MySQL :: Learn how to set up and manage user accounts on MySQL and how to configure Spring Boot to connect to it at runtime.
http://spring.io/guides/gs/accessing-data-mysql/
Apache License 2.0
201 stars 314 forks source link

./gradlew bootRun failed #66

Open snowuyl opened 6 days ago

snowuyl commented 6 days ago

./gradlew bootRun ... ... 30 common frames omitted

Task :bootRun FAILED

FAILURE: Build failed with an exception.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 11m 16s 4 actionable tasks: 4 executed

robertmcnees commented 6 days ago

Hi @snowuyl. I ran through the guide and ./gradlew bootRun worked fine for me. I was able to then execute the curl commands for get and add as well. Perhaps it is an environment issue? I updated this guide with an Intel Mac and I just tested with an Apple silicon Mac.

The CI environment also looks clean, so I don't think it's a problem with the example code.

The guide requires a local docker environment to be available. Is Docker Desktop running? If I stop running Docker Desktop locally I get an error similar to what you posted. This was the stack trace above:

Stderr:
Cannot connect to the Docker daemon at unix:///Users/<my_user>/.docker/run/docker.sock. Is the docker daemon running?