Hi, I'm trying to make requests with a trailing slash match requests
without it.
To do this, I've tried adding the following to my web.xml:
<servlet-name>Jersey Spring</servlet-name>
<servlet-class>com.sun.jersey.spi.spring.container.servlet.SpringServlet</servlet-class>
<init-param>
<param-name>com.sun.jersey.config.feature.Redirect</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>com.sun.jersey.config.feature.CanonicalizeURIPath</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>com.sun.jersey.config.feature.NormalizeURI</param-name>
<param-value>true</param-value>
</init-param>
Still, when I try to visit /resource/ I get a 404 while /resource
returns the correct method.
What can I do to match the same method to both URIs?
Regards,
Tarjei
--
Tarjei Huse