How to get query string parameters in java play framework?
问题 I'm very new to java play framework. I've set up all the normal routes like /something/:somthingValue and all the others. Now I want to create route the accepts query parameters like /something?x=10&y=20&z=30 Here I want to get all the params after "?" as key==>value pair. 回答1: You can wire in your query parameters into the routes file: http://www.playframework.com/documentation/2.0.4/JavaRouting in section "Parameters with default values" Or you can ask for them in your Action: public class