Spring - Rewrite one URL to another

后端 未结 3 570
花落未央
花落未央 2020-12-09 14:01

I have a Spring 2.5 application that contains a Flash banner. I don\'t have the source for the Flash component but it has links hardcoded to certain pages that end in

3条回答
  •  Happy的楠姐
    2020-12-09 14:07

    I would use OCPsoft PrettyFaces or OCPsoft Rewrite for this:

    With PrettyFaces:

    create WEB-INF/pretty-config.xml

    
       
       
    
    

    With Rewrite:

    ConfigurationBuilder.begin()
       .addRule(Join.path("/offers.html").to("/offers.jsp"));
    

    I hope this helps.

    ~Lincoln

提交回复
热议问题