0
我在我的应用程序中定义了两条路线。如何解决以编程方式解决播放框架路由冲突
GET /resource/:resourceid ResourceController.getResourceById(resourceid : String)
GET /resource/system SystemResourceController.getAllSystemResources()
上述路线相互冲突。
我无法访问SystemResourceController中定义的getAllSystemResources()。
所有对/ resource/system的HTTP GET请求。路线/资源/:在下面的链接 https://www.playframework.com/documentation/1.2.5/routes
我发现,路由优先级是基于在路由文件中提及的路线的顺序RESOURCEID
从播放的框架文件。
无论如何我能解决这个冲突吗?