【发布时间】:2011-07-31 01:15:18
【问题描述】:
Jax-rs @Path 变量有问题,我需要区分以下两个路径参数
- @Path({domain}/{id})
- @Path({domain}/{filename})
两者的示例网址:
1.http://localhost:8080/in.com/lrth09erdfgwe
2.http://localhost:8080/in.com/lrth09erdfgwe.xml
我认为我们需要在 pathparam 中使用正则表达式!我试过但没有得到它! 我在 Resteasy 与 spring-mvc 的集成中使用这个应用程序。 请就这个问题提出建议!
干杯!
【问题讨论】:
标签: spring-mvc jax-rs resteasy