Details
-
Task
-
Resolution: Done
-
Neutral
-
None
-
None
-
None
-
None
-
-
Empty show more show less
-
Empty show more show less
Description
I have been struggling to get a grasp of the best practises when it comes to spring and magnolia.
I have started creating my own project and i have the following modules:
- myProject-webapp
- myProjectControllers
- myProjectServices
myProjectControllers module holds controllers that are accessible externally, i.e used for ajax. to achieve that i followed Additional DispatcherServlets and AJAX calls example.
Now what i want is that within my controllers i could @Autowired some beans that are in my myProjectServices module.
Todo this I first need to declare my beans, which means that within myProjectServices i need to declare an applicationcontext.xml where i could declare my beans.
So my question is where and how do i declare this applicationcontext.xml so that the beans within it can be accessible by myProjectControllers module ?
P.S note i have not yet installed Blossom only added dependency to spring in all my modules, as i did not think i needed blossom yet.