Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. # ===============================
  2. # DATABASE
  3. # ===============================
  4. spring.jpa.hibernate.ddl-auto=update
  5. spring.datasource.url=jdbc:mysql://localhost:3306/{ten_database_cua_ban}?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Saigon&characterEncoding=UTF-8&characterSetResults=UTF-8
  6. spring.datasource.username={username_database}
  7. spring.datasource.password={password_database}
  8. spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
  9. spring.datasource.dbcp.test-while-idle=true
  10. spring.datasource.dbcp.validation-query=SELECT 1
  11.  
  12. # ===============================
  13. # JPA / HIBERNATE
  14. # ===============================
  15.  
  16. spring.jpa.show-sql=true
  17. spring.jpa.open-in-view=false
  18. spring.jpa.hibernate.ddl-auto=none
  19. spring.jpa.hibernate.naming.strategy=org.hibernate.cfg.ImprovedNamingStrategy
  20. spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
  21. hibernate.hibernate.current_session_context_class=thread
  22. spring.main.allow-bean-definition-overriding=true
  23.  
  24. spring.jpa.properties.hibernate.current_session_context_class=org.springframework.orm.hibernate5.SpringSessionContext
  25. spring.jpa.properties.hibernate.id.new_generator_mappings=false
  26. spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
  27.  
  28. spring.mvc.view.prefix: /
  29. spring.mvc.view.suffix: .jsp
  30. spring.messages.basename=validation
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement