Hi ALL,
I am trying to read applicationContext file from META-INF because i am creating the jar of my project APIs.
When i am trying to read it in my project(simple
java project) normally e.g. in resource/applicationContext.xml then able to read it fine and loads successfully.
But once i create the lib of it and putting this spring context file in META-INF then its not reading the file...
i tried
ClassPathXMLApplicationContext("META-INF/applicationContext.xml")
and also
getClass().getClassLoader().getResourceAsStream("META-INF/applicationContext.xml")
.
But not able to create the bean, which i am able to read, load and create normally...
Please provide me proper solution of it.
Thanks...