Advertisement
Guest User

Untitled

a guest
Feb 26th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. # DataSource settings: set here your own configurations for the database
  2. # connection. In this example we have "netgloo_blog" as database name and
  3. # "root" as username and password.
  4. spring.datasource.url = jdbc:mysql://localhost:3306/eventwebservice?useUnicode=yes&characterEncoding=UTF-8
  5. spring.datasource.username = mateusz
  6. spring.datasource.password = mateusz
  7.  
  8. # Keep the connection alive if idle for a long time (needed in production)
  9. spring.datasource.testWhileIdle = true
  10. spring.datasource.validationQuery = SELECT 1
  11.  
  12. # Show or not log for each sql query
  13. spring.jpa.show-sql = true
  14.  
  15. # Hibernate ddl auto (create, create-drop, update)
  16. spring.jpa.hibernate.ddl-auto = update
  17.  
  18. # Naming strategy
  19. spring.jpa.hibernate.naming-strategy = org.hibernate.cfg.ImprovedNamingStrategy
  20.  
  21. # Use spring.jpa.properties.* for Hibernate native properties (the prefix is
  22. # stripped before adding them to the entity manager)
  23.  
  24. # The SQL dialect makes Hibernate generate better SQL for the chosen database
  25. spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
  26.  
  27. #server
  28. #server.tomcat.uri-encoding = ISO 8859-1
  29.  
  30. #freemarker
  31. #spring.freemarker.charset = ISO 8859-1
  32.  
  33. # Charset of HTTP requests and responses. Added to the "Content-Type" header if not set explicitly.
  34. spring.http.encoding.charset=UTF-8
  35. # Enable http encoding support.
  36. spring.http.encoding.enabled=true
  37. # Force the encoding to the configured charset on HTTP requests and responses.
  38. spring.http.encoding.force=true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement