Created
April 27, 2017 19:16
-
-
Save sidneydemoraes/dfbe16bc33a047e5cda885f977ed2927 to your computer and use it in GitHub Desktop.
TechTalk - Gradle + Spring Boot + Groovy - application.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# =============================== | |
# = DATA SOURCE | |
# =============================== | |
spring.datasource.url=jdbc:mariadb://localhost:3306/mydb | |
spring.datasource.username=username | |
spring.datasource.password=passcode | |
spring.datasource.driverClassName = org.mariadb.jdbc.Driver | |
# Evitando perda de conexao com o MySql por inatividade | |
spring.datasource.testOnBorrow=true | |
spring.datasource.validationQuery=SELECT 1 | |
# =============================== | |
# = LOGGING | |
# =============================== | |
logging.config = ./config/logback.xml | |
logging.level. = ERROR | |
logging.level.br.com.smc = INFO | |
# =============================== | |
# = JPA / HIBERNATE | |
# =============================== | |
# Specify the DBMS | |
spring.jpa.database = MYSQL | |
# Ddl auto must be set to "create" to ensure that Hibernate will run the | |
# import.sql file at application startup | |
# create-drop| update | validate | none | |
# Configuração para local e PRD | |
spring.jpa.hibernate.ddl-auto = none | |
# SQL dialect for generating optimized queries | |
# Configuração para local e PRD | |
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect | |
# Show or not log for each sql query | |
spring.jpa.show-sql = false | |
# =============================== | |
# = THYMELEAF | |
# =============================== | |
spring.thymeleaf.cache = true | |
# =============================== | |
# = TOMCAT | |
# =============================== | |
server.port=80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment