什么是正确的道路

时间:2015-05-02 10:40:46

标签: java spring java-ee

从web xml到我的hhconfig.xml的正确路径是什么?

<context-param>
   <param-name>contextConfigLocation</param-name>
   <param-value>classpath:/hhconfig.xml</param-value>
</context-param>

<listener>
   <listener-class>
      org.springframework.web.context.ContextLoaderListener
   </listener-class>
</listener>

    <!-- Processes application requests -->
    <servlet>
      <servlet-name>hhconfig</servlet-name>
      <servlet-class>
         org.springframework.web.servlet.DispatcherServlet
      </servlet-class>
      <load-on-startup>1</load-on-startup>
   </servlet>

   <servlet-mapping>
      <servlet-name>hhconfig</servlet-name>
     <url-pattern>/</url-pattern>
   </servlet-mapping>

</web-app>

这是我项目树的屏幕

http://zapodaj.net/22e3adc3a776f.png.html

0 个答案:

没有答案