<bean id="user" class="com.troila.system.system.model.User" scope="prototype" > <property name="loginname" value="mifei" /> </bean> spring 中的Controller默認(rèn)是單例的,如果要設(shè)置非單例的話如下設(shè)置 @Scope( "prototype" ) public class MultViewController {
} |
|