Skip to content

Instantly share code, notes, and snippets.

@gusanthiago
Created December 10, 2018 23:26
Show Gist options
  • Save gusanthiago/46a45015af45df5baafa089573f091bf to your computer and use it in GitHub Desktop.
Save gusanthiago/46a45015af45df5baafa089573f091bf to your computer and use it in GitHub Desktop.
## Server
server.port=8082
server.servlet.context-path=/springRestSecurity
## Logging
# Show sql statement
logging.level.org.hibernate.SQL=debug
# Show sql values
logging.level.org.hibernate.type.descriptor.sql=trace
## Spring DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties)
spring.datasource.url = jdbc:mysql://0.0.0.0:3306/ESTOQUE?useTimezone=true&serverTimezone=UTC
spring.datasource.username = root
spring.datasource.password = adm1n
## Hibernate Properties
# The SQL dialect makes Hibernate generate better SQL for the chosen database
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQLDialect
# Hibernate ddl auto (create, create-drop, validate, update)
spring.jpa.hibernate.ddl-auto = validate
# fix uppercase naming identified
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment