questions - Question:Spring 3.1 REST @PathVariable dependencies

I'm creating a RESTful API with Spring MVC 3.1. I have a unique database per Project, so my REST urls for Collection must include Project so i know what database to connect to.

I've used registerCustomEditor in @InitBinder to auto-magically resolve @PathVariable Project project (awesome!).

But now i'm getting greedy and I want to automatically resolve @PathVariable Collection collection instead of doing the same thing over and over in each action in this controller. The problem is that Collection depends on Project being resolved. So how do I set it up with this dependency?

asked Sep 13, 2013 in Core java by anonymous
edited Sep 12, 2013
0 votes

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.