Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html xmlns:th="http://www.thymeleaf.org"
  3. xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
  4. <head>
  5. <meta charset="utf-8"/>
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. </head>
  9. <body>
  10. <h2>Thymleaf example</h2>
  11. <p sec:authorize="hasRole('ROLE_USER')">
  12. Authenticated
  13. </p>
  14. </body>
  15. </html>
  16.  
  17. <dependency>
  18. <groupId>org.springframework.boot</groupId>
  19. <artifactId>spring-boot-starter-security</artifactId>
  20. </dependency>
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.thymeleaf.extras</groupId>
  27. <artifactId>thymeleaf-extras-springsecurity4</artifactId>
  28. </dependency>
  29. <dependency>
  30. <groupId>org.springframework.boot</groupId>
  31. <artifactId>spring-boot-starter-web</artifactId>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.springframework.boot</groupId>
  35. <artifactId>spring-boot-starter-test</artifactId>
  36. <scope>test</scope>
  37. </dependency>
  38. ... dependencies for mysql and jdbc are omitted.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement