spring - Java WebApp: Loading resource from .jar located in WEB-INF/lib directory -
what right way load resource inside of .jar file located in web-inf/lib folder.
i have following directory structure inside web-inf directory
> /web-inf > /classes > /some/package/name > /config/springbeans.xml > /lib > /daolayer.jar > /another/package/with/known/name > someknownclass.class > /config/hibernate.xml now , want load beans defined inside hibernate.xml of daolayer.jar during start of web application. how can reference hibernate.xml springbeans.xml.
not working
<!-- database configuration --> <import resource="./hibernate.xml"/> not working
<!-- database configuration --> <import resource="./config/hibernate.xml"/> i have tried following approach not finding hibernate.xml. advice me on correct way done, thank in advance help
Comments
Post a Comment