spring - Module classpath in IntelliJ Idea -


i have 2 projects, project depend on b project, these 2 project checkout svn,other people created them eclipse. use intellij idea, in web.xml:

<servlet-class>org.springframework.web.servlet.dispatcherservlet</servlet-class>         <init-param>             <param-name>contextconfiglocation</param-name>             <param-value>classpath:config/spring-servlet.xml;classpath:config/spring-mybatis.xml</param-value>         </init-param>     <load-on-startup>1</load-on-startup> 

the second classpath:config/spring-mybatis.xml in project b, idea can not find it. if open these 2 project in eclipse,eclipse can find it.
how can solve problem?

try following code in web.xml file:

<init-param>     <param-name>contextconfiglocation</param-name>     <param-value>         config/spring-servlet.xml         config/spring-mybatis.xml     </param-value> </init-param> 

you may need change above xml file paths spring can find them. appears eclipse somehow able interpret classpath actual location xml files. during maven build, spring config files copied web-inf/classes directory. eclipse referring these copied classpath xml files.

for more information , read, see this stack exchange article.


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -