Spring MVC cache bean files not loaded when web application starts?

I'm just wondering if I'm better off putting it in src / main / webapp / WEB-INF / context.xml or in my src / main / resources / something.xml path.

Technically I don't need to load something.xml until a specific controller is called, but I also want to keep something.xml separate from context.xml because they are both pretty huge files ... which could be bad if mine the app has to constantly load something.xml every time the controller is called.

+3


source to share


1 answer


What you put in something.xml is also loaded at the beginning of your webapp, since the context.xml is there. Therefore, it does not matter what you load in this or that xml. I would advise you to split as many files as you need your XML.



0


source







All Articles