最新回答 / 辰_ger
檢查一下applicationContext.xml中sessionFactory這個Bean是否配置正確 還有引用這個bean的時候是不是拼寫錯誤
最贊回答 / 找自己621
在spring in action那本書里有詳細闡述,簡單說一下,ioc就是其實就是依賴注入,即用接口編程,在程序中不出現new關鍵字,而是用接口來命名引用,然后通過某種方式(多數用spring,不過Google guice也是很好的ioc框架)把接口的某個實現類的實例注入到引用里,從而實現與接口具體實現類的松耦合aop方式就理解起來就簡單了,其方式很類似j2ee中的filter,就是在程序正常的業務流中間像切面一樣插入很多其他需要執行的代碼,比如登陸時候在進入登錄頁面前寫入日志,登錄以后查看cookie...
2016-12-26
最新回答 / 雅居園拉
InputStream讀取不到配置文件
最新回答 / 打油醬
ERROR - Context initialization failedorg.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 31 in XML document from class path resource [applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber...
2016-12-07