我很好奇這件事。在Spring MVC Project中聲明瞭「classpath *」的位置?
這個「classpath *」聲明在哪裏?
關於在web.xml中的描述很常見。
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath*:egovframework/springmvc/context-*.xml
</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
我以爲這個框架首先讀取web.xml。但是它怎麼能知道這個關鍵字「classpath *:」?
感謝您前面回答事先:d
明白了。我明白,PropertyEditor接口控制這個關鍵字。我需要研究它。感謝:D – 2014-09-01 02:32:39