Google Guice on Google Appengine: mapping with working _ah

后端 未结 4 1001
孤独总比滥情好
孤独总比滥情好 2021-01-14 17:55

I have a Google Appengine/Guice/Wicket Application. My problem is that due to the mapping I can\'t access the /_ah/admin Page anymore.

My Servlet Module says:

<
4条回答
  •  南方客
    南方客 (楼主)
    2021-01-14 18:45

    I know this is is a pretty old question with an accepted anser, however the solution is more straight forward than URL rewriting. In your Guice servlet module you can pass configuration parameters as follows:

    
    Map wicketParams = new HashMap(3);
    wicketParams.put(WicketFilter.IGNORE_PATHS_PARAM, "/_ah/*");
    wicketParams.put(WicketFilter.FILTER_MAPPING_PARAM, ROOT_FILTER_MAPPING_URL);
    filter("/*").through(GuiceWicketFilter.class, wicketParams );
    

提交回复
热议问题