Advertisement
Guest User

application.properties --- SPRING TUTORIAL

a guest
Dec 10th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. spring.mvc.view.prefix=/WEB-INF/jsp/
  2. spring.mvc.view.suffix=.jsp
  3.  
  4.  
  5. spring.profiles.active=dev
  6. # Database url
  7. spring.datasource.url = jdbc:mysql://localhost:3306/springUser?useSSL=false&useTimezone=true&serverTimezone=UTC
  8. spring.datasource.driverClassName = com.mysql.cj.jdbc.Driver
  9.  
  10. # Database credentials
  11. spring.datasource.username = root
  12. spring.datasource.password =
  13. spring.jpa.show-sql = true
  14. spring.jpa.generate-ddl=true
  15. spring.jpa.hibernate.ddl-auto = update
  16. # Keep database connection alive
  17. spring.datasource.tomcat.test-while-idle = true
  18. spring.datasource.tomcat.validation-query = SELECT 1
  19.  
  20. # ==============================
  21. # --- JPA / Hibernate
  22. # ==============================
  23.  
  24. spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5InnoDBDialect
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement