原文:eclipse啟動tomcat時BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext

大致是核心配置文件的問題。 如果配置沒錯,看看符號等是不是完整。或者是路徑的包是不是多了 ...

2017-10-09 12:54 0 2445 推薦指數:

查看詳情

BeanFactory not initialized or already closed - call 'refresh' before access

遇到這種錯誤的時候,看到網上很多人都是建議這么解決: BeanFactory沒有實例化或者已經關閉了,其實產生錯誤的原因很簡單,在寫: ApplicationContext ctx = new ClassPathXmlApplicationContext(); ,沒有指定配置文件 ...

Tue Aug 23 22:17:00 CST 2016 1 4275
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM