0
Ich habe Sicherheitsdomäne in web.xml
konfiguriert als:Wie url-pattern unter Sicherheitsdomäne in web.xml von Java zur Laufzeit zu konfigurieren?
<security-constraint>
<display-name>all</display-name>
<web-resource-collection>
<web-resource-name>all</web-resource-name>
<url-pattern>${param-name</url-pattern>
<http-method>POST</http-method>
<http-method>GET</http-method>
<http-method>PUT</http-method>
<http-method>DELETE</http-method>
<http-method>PATCH</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>admin</role-name>
</auth-constraint>
</security-constraint>
Jetzt möchte ich zur Laufzeit URL-Muster hier beim Serverstart von Java einzustellen. Wie kann ich das machen?