Spring中,看下面的代码,说法正确的是
<bean id="userTable" class="com.xfaccp.bean.UserTable">
<property name="userName">
<value>ACCP</value>
</property>
</bean>其中的userName是UserTable中的属性,可以不要get、set方法
其中的userName是UserTable中的属性,可以不要get方法,但是一定要有set方法
其中的userName是UserTable中的属性,可以不要set方法,但是一定要有get方法
其中的userName是UserTable中的属性,一定要有get和set方法