@ImportResource path in Spring MVC

Viewed 1879

I have a Spring-Datasource.xml file in /WEB-INF path. I want to import it in AppConfig.java that it is a config file. what is the correct path in @ImportResource in NetBeans IDE? I coding in Spring MVC. I know that I should use:

@ImportResource(classpath:Spring-Datasource.xml)

But it doesn't work. Project Hirearchy:

-FinalWebStore
   -Web Pages
     -WEB-INF
          +views
          web.xml
          mvc-dispatcher-servlet.xml
          Spring-Datasource.xml
   -Source Packages
      +com.karans.finalwebstore.controllers
      +com.karans.finalwebstore.daoimps
      +com.karans.finalwebstore.daos
      +com.karans.finalwebstore.models
   +Dependecies
...
2 Answers
Related