classpath:隻會到你指定的class路徑中查找找檔案;
classpath*:不僅包含class路徑,還包括jar檔案中(class路徑)進行查找.
舉個簡單的例子,在我的web.xml中是這麼定義的:classpath*:META-INF/spring/application-context.xml
那麼在META-INF/spring這個檔案夾底下的所有application-context.xml都會被加載到上下文中,這些包括META-INF/spring檔案夾底下的application-context.xml,META-INF/spring的子檔案夾的application-context.xml以及jar中的application-context.xml。