I'm creating an email form that will be used in multiple applications and multiple places in the same application on different url patterns. Ideally I would like to create it as an @MVC controller that is autowired and automatically starts itself up via a component scan when the servlet container starts.
Here is my problem. I need the @RequestMapping(value={"/url1","url2","..."}) to be configurable outside the java in a xml file (sort of the way you use to be able to do using the SimpleFormController and SimpleUrlHanderMapping). I need to be able to inject my url mappings so that each application can have a completely separate set of url mappings. Can someone tell me if this is possible?
I could use SimpleFormController to accomplish this (minus the component scan) but I really wanted to use @MVC because I was told that the old controller hierarchy is or will soon be deprecated.


Reply With Quote
