title: Change the URL mapping -Javamelody
body: <p>I'm using <strong>Javamelody</strong> in my application. I need only root users to access the statistics. Javamelody by default you can access </p>
  
  <pre><code>http://localhost/webapp/monitoring
  </code></pre>
  
  <p>I need to change it to </p>
  
  <pre><code>http://localhost/webapp/monitor/monitoring
  </code></pre>
  
  <p>I have done the following filter mapping</p>
  
  <pre><code>&lt;filter&gt;
      &lt;filter-name&gt;monitoring&lt;/filter-name&gt;
      &lt;filter-class&gt;net.bull.javamelody.MonitoringFilter&lt;/filter-class&gt;
  &lt;/filter&gt;
  &lt;filter-mapping&gt;
      &lt;filter-name&gt;monitoring&lt;/filter-name&gt;
      &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
  &lt;/filter-mapping&gt;
  &lt;listener&gt;
      &lt;listener-class&gt;net.bull.javamelody.SessionListener&lt;/listener-class&gt;
  &lt;/listener&gt;
  </code></pre>