Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. # ===============================
  2. # = DATA SOURCE
  3. # ===============================
  4.  
  5. spring.datasource.url=jdbc:mariadb://localhost:3306/mydb
  6. spring.datasource.username=username
  7. spring.datasource.password=passcode
  8. spring.datasource.driverClassName = org.mariadb.jdbc.Driver
  9.  
  10. # Evitando perda de conexao com o MySql por inatividade
  11. spring.datasource.testOnBorrow=true
  12. spring.datasource.validationQuery=SELECT 1
  13.  
  14.  
  15. # ===============================
  16. # = LOGGING
  17. # ===============================
  18.  
  19. logging.config = ./config/logback.xml
  20. logging.level. = ERROR
  21. logging.level.br.com.smc = INFO
  22.  
  23.  
  24. # ===============================
  25. # = JPA / HIBERNATE
  26. # ===============================
  27.  
  28. # Specify the DBMS
  29. spring.jpa.database = MYSQL
  30.  
  31. # Ddl auto must be set to "create" to ensure that Hibernate will run the
  32. # import.sql file at application startup
  33. # create-drop| update | validate | none
  34. # Configuração para local e PRD
  35. spring.jpa.hibernate.ddl-auto = none
  36.  
  37. # SQL dialect for generating optimized queries
  38. # Configuração para local e PRD
  39. spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
  40.  
  41. # Show or not log for each sql query
  42. spring.jpa.show-sql = false
  43.  
  44.  
  45. # ===============================
  46. # = THYMELEAF
  47. # ===============================
  48.  
  49. spring.thymeleaf.cache = true
  50.  
  51.  
  52. # ===============================
  53. # = TOMCAT
  54. # ===============================
  55.  
  56. server.port=80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement