【发布时间】:2012-02-25 08:25:08
【问题描述】:
如果我给出这个,在 html 模板中:
@routes.Application.chat(username).webSocketURL()
我明白了:
ws://localhost:9000/room/chat?username=test
我想要一种在 Scala 类中将其作为字符串获取的方法。
【问题讨论】:
标签: scala routes playframework playframework-2.0
如果我给出这个,在 html 模板中:
@routes.Application.chat(username).webSocketURL()
我明白了:
ws://localhost:9000/room/chat?username=test
我想要一种在 Scala 类中将其作为字符串获取的方法。
【问题讨论】:
标签: scala routes playframework playframework-2.0
您可以在documentation 中找到,使用:
controllers.routes.chat(username).webSocketURL()
【讨论】: