Skip to content

Instantly share code, notes, and snippets.

@jeffersonchaves
Last active June 9, 2025 16:49
Show Gist options
  • Save jeffersonchaves/8ee03b602d150013c76caffdfc1e244c to your computer and use it in GitHub Desktop.
Save jeffersonchaves/8ee03b602d150013c76caffdfc1e244c to your computer and use it in GitHub Desktop.
application.properties
spring.datasource.url=jdbc:mysql://localhost:3306/DATABASE_NAME
#?createDatabaseIfNotExist=true
# &userSSL=false
# &serverTimezone=UTC
# ...
spring.datasource.username=USER
spring.datasource.password=PASSWORD
spring.jpa.hibernate.ddl-auto=update
# ddl-auto: permite criação e atualização das tabelas do banco;
#spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
#spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
# spring.jpa.show-sql=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment