Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
考虑以下 Groovlet:
html.html { head { title("Groovy Test") } body { center { img(src:"getPlot.groovy?name=name&value=value") } } }
有没有更好的方法来生成 URL?我希望从 URL 中消除显式的 var/vals。
您可以为此使用UrlRewriteFilter 。它类似于 mod_rewrite,但实现为 servlet 过滤器。