web.xml 930 B

123456789101112131415161718192021222324252627
  1. <web-app version="4.0"
  2. xmlns="http://xmlns.jcp.org/xml/ns/javaee"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd">
  5. <security-constraint>
  6. <display-name>REST</display-name>
  7. <web-resource-collection>
  8. <web-resource-name>REST</web-resource-name>
  9. <description>REST</description>
  10. <url-pattern>/api/*</url-pattern>
  11. </web-resource-collection>
  12. <auth-constraint>
  13. <description>REST</description>
  14. <role-name>user</role-name>
  15. </auth-constraint>
  16. </security-constraint>
  17. <security-role>
  18. <role-name>totvstech</role-name>
  19. </security-role>
  20. <security-role>
  21. <role-name>user</role-name>
  22. </security-role>
  23. <security-role>
  24. <role-name>sysadmin</role-name>
  25. </security-role>
  26. </web-app>