<servlet>
<servlet-name>springMVC</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath*:config/application.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>springMVC</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
classpath*:config/application.xml中的這句 我沒有用絕對路徑,那個classpath具體指的是哪個路徑,在哪裡可以設置嗎?我在java Build Path ---> Source 下 Default output 中設置路徑後 一直報
org.springframework.web.servlet.DispatcherServlet noHandlerFound
警告: No mapping found for HTTP request with URI [/SpringMVC1/hello] in DispatcherServlet with name 'springMVC'
求教
classpath是src下的相對路徑,報錯檢查一下application.xml有沒有配置action的攔截地址