我正在使用 Wicket 1.5.3,在扩展的 WebApplication 类中,我正在注册主页 HomePage.java
以获得漂亮的 URL:
mountPage('home', HomePage.class);
结果是一个 URL:http://localhost:8080/MyApplication/app/home?1
“?1”从哪里来,如何删除它?
如果我希望 URL 为 http://localhost:8080/MyApplication/app/home ,那我该怎么办呢?
提前致谢。
最佳答案
您看到的参数是页面版本(因为 wicket 页面是有状态的)。已经有SO question how to get rid of this version in url .
关于java - 好的 URL : Wicket 1. 5 mountPage,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10403131/