Advertisement
Guest User

Untitled

a guest
Nov 17th, 2016
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. # ===============================
  2. # = DATA SOURCE
  3. # ===============================
  4. spring.datasource.url = jdbc:mysql://localhost:3306/spring-security-tutorial
  5. spring.datasource.username = root
  6. spring.datasource.password = admin
  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. # = Thymeleaf configurations
  20. # ===============================
  21. spring.thymeleaf.mode=LEGACYHTML5
  22. spring.thymeleaf.cache=false
  23.  
  24. # ==============================================================
  25. # = Spring Security / Queries for AuthenticationManagerBuilder
  26. # ==============================================================
  27. spring.queries.users-query=select email, password, active from user where email=?
  28. 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