Skip to content

Commit

Permalink
Fix application.properties on hibernate-search sample
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Zanelli committed Mar 23, 2017
1 parent 188422c commit 512af43
Showing 1 changed file with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,30 @@
# ===============================

# Set here configurations for the database connection

# Connection url for the database "netgloo_blog"
spring.datasource.url = jdbc:mysql://localhost:3306/netgloo_blog?useSSL=false

# Username and password
spring.datasource.username = root
spring.datasource.password = root

# Mysql connector
spring.datasource.driverClassName = com.mysql.jdbc.Driver


# ===============================
# = JPA / HIBERNATE
# ===============================

# Specify the DBMS
spring.jpa.database = MYSQL

# Show or not log for each sql query
spring.jpa.show-sql = true

# Ddl auto must be set to "create" to ensure that Hibernate will run the
# import.sql file at application startup
spring.jpa.hibernate.ddl-auto = create

# SQL dialect for genereting optimized queries
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
# Naming strategy
spring.jpa.hibernate.naming-strategy = org.hibernate.cfg.ImprovedNamingStrategy

# Allows Hibernate to generate SQL optimized for a particular DBMS
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect

# ===============================
# = HIBERNATE SEARCH
Expand All @@ -45,7 +44,6 @@ spring.jpa.properties.hibernate.search.default.directory_provider = filesystem
# permissions on such directory)
spring.jpa.properties.hibernate.search.default.indexBase = /var/netgloo_blog/lucene/indexes/


# ===============================
# = THYMELEAF
# ===============================
Expand Down

0 comments on commit 512af43

Please sign in to comment.