1. 程式人生 > >BeanFactory not initialized or already closed

BeanFactory not initialized or already closed

先看一下是不是spring的xml檔案頭部沒有配置好

<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd ">

前方高能:

---------------------------------------------------------------------------------------------------------------------------

還有一種可能就是:

class檔案沒有載入