title: One security concept for multiple wars on embedded jetty
body: <p>I have an embedded jetty server with multiple wars. Each war is one part of one web application.
  The goal is to add the same security to all wars. My preferred security mechanism would be spring security.</p>
  
  <p>There might be two solutions:</p>
  
  <h2>a) Define security in each war.</h2>
  
  <p>I could define a servlet filter in each web.xml.
  Problem: How can I use the same security among the different wars?
  Redundancy: I would have to add the same config to all web.xml.</p>
  
  <h2>b) Define security filter for path /*</h2>
  
  <p>How can I set the spring security to filter everything on the jetty?</p>