这两天在看spring3的文档,看到beanFactory的生命周期的时候做了一个实验。结果报了一个错,找了一下原因,现在写在这里。
首先是配置:
<?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:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
<bean id="classTest2" class="src.ClassTest2"
init-method="classTest2Init"
destroy-meth