In fact, I ran into the following problem:
I am using Spring with jQuery. I have a controller:
@Controller @RequestMapping(value = "/A") public class AController {
This handles all host/A/... URLs in order. But jQuery CSS styles use url(images/...) , so there are links from host/A/index.jsp to host/A/images/... But I do not have such a folder, since / A / is just a "logical" URL.
I tried to add
<mvc:resources mapping="/images/**" location="/images/" /> <mvc:resources mapping="/A/images/**" location="/images/" />
in my web.xml, but it seems like it is not working (the first one works fine). For example, when I try to verify this, host/A/test.png does not work.
Of course, I can modify jQuery sources, but I am not exaggerating this.
Maybe I can use UrlRewriteFilter if there is no simpler solution.
java spring
Betlista
source share