我目前尚未公開Spring。我在我的系統中有一個獨立的java項目中看到了下面的代碼。你能幫我理解下面的代碼嗎?我無法在項目中看到spring.xml文件 - 它是否必須存在並且缺失?在獨立Java類中使用ClassPathXmlApplicationContext
appContext = new ClassPathXmlApplicationContext(new String[] {
"classpath*:/META-INF/spring.xml",
"classpath*:myapplication-application-context.xml"
});
謝謝skaffman加載相應的web應用程序上下文。將尋找文件:) – 2012-01-05 08:24:31