---
title: "spring in action 杂记(随时在这里更新)"
author: "tianmo2008"
date: "2009-08-02T20:13:49Z"
tags: ["Bean", "Spring", "prototype"]
slug: "spring-in-action"
draft: false
lastmod: "2009-08-02T20:13:49Z"
id: 438163
url: "https://chjl2020.iteye.com/blog/438163"
---

spring in action 第一版是spring1.1.3版本,问题还真多.
1:spring2.0以后,bean不再支持singleton属性,改用scope="singleton/prototype"

```java

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!

```