简体   繁体   中英

How do I pass url array query parameter into Play Framework?

I want to have a controller and route that take an array parameter.

GET   /path    controllers.MyController.path(ids: Seq[Long])

How do I pass in the array parameter in the query string of the URL?

Use the following URL:

/path?ids=1&ids=2

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM