spring - Configuration Failed to import bean definitions from relative location -


my folder structure is:

src/main---java            resources/meta-inf/srping-context/application.xml            webapp/web-inf--web.xml                            despatcher-servlet.xml 

from webapp/web-inf/despatcher-servlet trying import application.xml like

<import resource="classes/meta-inf/spring-context/application.xml"/> 

getting exception configuration problem: failed import bean definitions relative location [classes/meta-inf/springcontext/application.xml] can 1 me.

your configuration file in classpath have use classpath: prefix remove classes path. settings be:

classpath:meta-inf/springcontext/application.xml 

Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -