Skip to content

Instantly share code, notes, and snippets.

@sidneydemoraes
Created April 27, 2017 19:19
Show Gist options
  • Save sidneydemoraes/9e183d6f95043317d76b3e10c1773c40 to your computer and use it in GitHub Desktop.
Save sidneydemoraes/9e183d6f95043317d76b3e10c1773c40 to your computer and use it in GitHub Desktop.
TechTalk - Gradle + Spring Boot + Groovy - application.yaml
spring:
# ===============================
# = DATA SOURCE
# ===============================
# define DataSrouce properties
# use h2 can have a buid in web console http://localhost:8080/h2-console
datasource:
url: jdbc:mariadb://localhost:3306/mydb
driverClassName: org.mariadb.jdbc.Driver
username: username
password: passcode
# Evitando perda de conexao com o MySql por inatividade
testOnBorrow: true
validationQuery: SELECT 1
# ===============================
# = JPA / HIBERNATE
# ===============================
jpa:
database: MYSQL
# SQL dialect for generating optimized queries
# Configuração para local e PRD
properties:
hibernate.dialect: org.hibernate.dialect.MySQL5Dialect
# 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
hibernate.ddl-auto: none
# Show or not log for each sql query
show-sql: false
# ===============================
# = THYMELEAF
# ===============================
thymeleaf:
cache: true
# ===============================
# = FACEBOOK INTEGRATION
# ===============================
social:
facebook:
appId: *****
appSecret: *****
# ===============================
# = EMAIL PROVIDER
# ===============================
mail:
host: smtp.gmail.com
username: ******
password: ******
smtp.port: 587
protocol: smtp
defaultEncoding: UTF-8
properties:
mail:
smtp:
auth: true
from: no-reply@mydomain.com.br
ssl.enable: true
starttls:
enable: true
required: true
socketFactory:
port: 587
class: javax.net.ssl.SSLSocketFactory
fallback: false
# ===============================
# = LOGGING
# ===============================
logging:
config: ./config/logback.xml
level.: ERROR
level.br.com.smc: INFO
# ===============================
# = TOMCAT
# ===============================
server.port: 80
# ===============================
# = CONFIGURAÇÕES DA APLICAÇÃO
# ===============================
busca:
parametro: 0.5
email:
contato: contato@mydomain.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment