Advertisement
Guest User

Untitled

a guest
Feb 19th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. # ===============================
  2. # = DATA SOURCE
  3. # ===============================
  4. spring.datasource.url = jdbc:mysql://localhost:3306/webshop?useSSL=false
  5. spring.datasource.username = root
  6. spring.datasource.password = root
  7. spring.jpa.database = MYSQL
  8.  
  9.  
  10. spring.datasource.testWhileIdle = true
  11. spring.datasource.validationQuery = SELECT 1
  12.  
  13. # ===============================
  14. # = JPA / HIBERNATE
  15. # ===============================
  16. spring.jpa.show-sql = true
  17. spring.jpa.hibernate.ddl-auto = update
  18. spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
  19.  
  20. # ===============================
  21. # = Thymeleaf configurations
  22. # ===============================
  23.  
  24. spring.thymeleaf.cache=false
  25.  
  26.  
  27. # ==============================================================
  28. # = Spring Security / Queries for AuthenticationManagerBuilder
  29. # ==============================================================
  30.  
  31.  
  32. spring.queries.users-query=select email, password, active from users where email=?
  33. spring.queries.roles-query=select u.email, r.role from users u inner join user_role ur on(u.user_id=ur.user_id) inner join roles r on(ur.role_id=r.role_id) where u.email=?
  34.  
  35.  
  36. # ==============================================================
  37. # = Spring Session
  38. # ==============================================================
  39.  
  40. spring.session.store-type=redis
  41. spring.session.redis.flush-mode= # Sessions flush mode.
  42. spring.session.redis.namespace= # Namespace for keys used to store sessions.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement