<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
	
	<!--
		使用 bean 的 scope 属性来配置 bean 的作用域
		 singleton: 默认值. 容器初始时创建 bean 实例. 在整个容器的生命周期内只创建着一个 bean. 是单例的
		 prototype: 原型的. 容器初始化时不创建 bean 的实例. 而在每次请求时都创建一个新的 bean 的实例. 并返回
	 -->
	
	<bean id="car" class="com.atguigu.spring.beans.autowire.Car"
		scope="prototype">
		<property name="brand" value="baoma"></property>
		<property name="price" value="300000"></property>
	</bean>
	
</beans>