spring in action 第一版是spring1.1.3版本,问题还真多.
1:spring2.0以后,bean不再支持singleton属性,改用scope="singleton/prototype"
1:spring2.0以后,bean不再支持singleton属性,改用scope="singleton/prototype"
This is a change which has been made in Spring 2.0 RC4. From the Spring change log:
spring-beans-2.0.dtd/xsd does not support singleton="true"/"false" anymore. Use scope="singleton/"prototype" instead!