Advertisement
Guest User

Untitled

a guest
Jun 20th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. # ===============================
  2. # = DATA SOURCE
  3. # ===============================
  4. spring.datasource.url = jdbc:mysql://mysql.agh.edu.pl:3306/wersie
  5. spring.datasource.username = wersie
  6. spring.datasource.password = PcuA6KJWZRujGkkA
  7. spring.datasource.testWhileIdle = true
  8. spring.datasource.validationQuery = SELECT 1
  9.  
  10. # ===============================
  11. # = JPA / HIBERNATE
  12. # ===============================
  13. spring.jpa.show-sql = true
  14. spring.jpa.hibernate.ddl-auto = update
  15. spring.jpa.hibernate.naming-strategy = org.hibernate.cfg.ImprovedNamingStrategy
  16. spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
  17.  
  18. # ===============================
  19. # = JSP configurations
  20. # ===============================
  21.  
  22. spring.mvc.view.prefix: /WEB-INF/jsp/
  23. spring.mvc.view.suffix: .jsp
  24.  
  25.  
  26. # ===============================
  27. # = Thymeleaf configurations
  28. # ===============================
  29.  
  30. #spring.thymeleaf.mode=LEGACYHTML5
  31. #spring.thymeleaf.cache=false
  32.  
  33. # ==============================================================
  34. # = Spring Security / Queries for AuthenticationManagerBuilder
  35. # ==============================================================
  36. spring.queries.users-query=select email, password, active from user where email=?
  37. spring.queries.roles-query=select u.email, r.role from user u inner join user_role ur on(u.user_id=ur.user_id) inner join role r on(ur.role_id=r.role_id) where u.email=?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement