一、多项选择题1.下面关于在    Spring中配置Bean的init-method    的说法正确的选项是〔〕。A〕init-method    是在最前面执行的B〕init-method    在构造方法后,依赖注入前执行C〕init-method    在依赖注入之后执行D〕init-method    在依赖注入之后,构造函数之前执行2.下面关于    Spring配置文件说话正确的选项是〔    〕。
实例化bean的三种方式
A〕Spring
配置文件必须叫
B〕Spring
配置文件可以不叫
C〕Spring
配置文件可以有多个
D〕Spring
配置文件只能有一个
3.看下面的代码,说法正确的选项是〔
〕。
<beanid="userTable"class="com.xfaccp.bean.UserTable"><propertyname="userName">
<value>ACCP</value>
</property></bean>
A〕其中<propertyname="userName">
的userName
是UserTable
中的属性,可以不要get、
set方法。
B〕其中<propertyname="userName">
的userName
是UserTable
中的属性,可以不要get
方法,但是一定要有
set方法
C〕其中<propertyname="userName">
的userName
是UserTable
中的属性,可以不要set
方法,但是一定要有
get方法
D〕其中<propertyname="userName">
的userName
是UserTable
中的属性,一定要有get
和set方法
4.看下面的代码,说法正确的选项是〔〕
<beanid=“user"class=“com.xfaccp.bean.User"/>
<constructor-arg>
<value>accp</value>
</constructor-arg></bean>
A〕必须要有一个接受字符串的构造方法B〕可以没有接受一个字符串的构造方法C〕这个类有且只能有一个只接受一个字符串的构造方法D〕这个类可以有多个构造方法,但是一定要有一个只接受一个字符串的构造方法5.看下面的代码,说法正确的选项是〔    〕。
<beanid="before"    class="org.springframework.aop.framework.ProxyFactoryBean">

<property
name="proxyInterfaces">

<value>com.xfaccp.before.BeforeInterface</value>
</property>

<property


name="target">

<ref

bean="testBefore"/>

</property>