Skip to content

Instantly share code, notes, and snippets.

@chrisbay
Created November 7, 2016 14:16
Show Gist options
  • Save chrisbay/b95fe8bbe93986383728f0405101eaf1 to your computer and use it in GitHub Desktop.
Save chrisbay/b95fe8bbe93986383728f0405101eaf1 to your computer and use it in GitHub Desktop.
application.properties for Spring Blogz assignment
# Disable Thymeleaf caching for hot-swapping of templates
spring.thymeleaf.cache = false
# Database connection settings
spring.datasource.url=jdbc:mysql://localhost:3306/blogz
spring.datasource.username=blogz
spring.datasource.password=launchcode
# Specify the DBMS
spring.jpa.database = MYSQL
# Show or not log for each sql query
spring.jpa.show-sql = false
# Hibernate ddl auto (create, create-drop, update)
spring.jpa.hibernate.ddl-auto = update
# Naming strategy
spring.jpa.hibernate.naming-strategy = org.hibernate.cfg.ImprovedNamingStrategy
# Use spring.jpa.properties.* for Hibernate native properties (the prefix is
# stripped before adding them to the entity manager)
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment