Aug 20th, 2010, 04:27 AM
Of course you can configure mvc in your web services context, that is perfectly fine. Just be aware that configuration you do in your dispatcherservlet context won't be available in the other one (they are two different contexts after all) so you must put scanning directives in both config files for example. What won't work is just direct injection between beans of different servlet contexts, because they are independent from one another, but that don't mean you can't configure them both as you like (althought the motivation behind usage of web mvc specific annotations in web services seems to slip my grasp, maybe I need to read something about Spring web services to get a clearer idea).
Say hi to beautiful Barcelona for me.
Tags for this Thread