- 有请使用UML类图画出原型模式核心角色
- 原型设计模式的深拷贝和浅拷贝是什么,并写出深拷贝的两种方式的源码(重写
clone方法实现深拷贝、 使用序列化来实现深拷贝) - 在Spring框架中哪里使用到原型模式,并对源码进行分析
beans.xml
1
<bean id="id01" class="com.atguigu.spring.bean.Monster" scope="prototype"/>
beans.xml
1 | <bean id="id01" class="com.atguigu.spring.bean.Monster" scope="prototype"/> |
Update your browser to view this website correctly. Update my browser now