It’s probably a dumb question for the experts in Spring MVC but I don’t know how does it work under the hood that’s why I ask.
Another wording for the same question: are there any dependencies on Spring DI inside Spring MVC?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I am pretty sure it’s not possible to use Spring MVC without the IOC container.
For example: at the heart of Spring MVC lies the
DispatcherServlet. DispatcherServletinitializes itself using these methods:
So you can see, everything is tightly integrated with the
ApplicationContextinterface.So your only chance would be to have a Guice implementation of ApplicationContext, and that would be very far-fetched, I guess.