BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext项目是基于spring 和 mybatis的。 查看完整描述