1、所有属性为private
2、提供默认构造方法
3、提供getter和setter
4、实现serializable接口
凡事被spring 创建的对象才能成为spring 的bean
相关文章: