java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext

原因:升级了jdk导致的问题,从1.7-1.8,导致spring3.X不适配;

解决方案:升级spring  jar包到4.X即可

 

posted @ 2017-12-07 16:29  xh_Blog  阅读(325)  评论(0编辑  收藏  举报