Ask a Question
Advertise on boostr.in
Organizational Research By
Surprising Reserch Topic
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?
Sep 13, 2013
Sep 12, 2013
to add a comment.
Related Hot Questions
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
To avoid this verification in future, please