Skip to content
Advertisement

How to get ApplicationContext in xml definition?

What is the xml equivalent of the

JavaScript

?

P.S.: When I try to google it I got a million results about how ApplicationContext works but not how to get it in the xml definition. The project is all writen using xml definition so I need to find a way how to do it without anotations.

Advertisement

Answer

First, configure your spring beans in file applicationContext.xml For example:-

JavaScript

load the spring configuration file and retrieve bean from spring container

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement