samedi 14 mars 2015

How to load property file which is present in outside webapps folder Spring4.0?

I am trying to load the property file


Below is the line of code I have in spring.xml of 'org.springframework.web.servlet.DispatcherServlet'


I am always getting FileNotFoundException always.


What I realized is that th application is always trying to look from the classpath after appending additiona '/'.


Could you please let me know what is the best way to load the property file which is present outside the webapps.


Aucun commentaire:

Enregistrer un commentaire