# chapter07 **Repository Path**: mw-li/chapter07 ## Basic Information - **Project Name**: chapter07 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-03-24 - **Last Updated**: 2022-03-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 第7章 Bean管理 ### 教材P102 基于注解装配 - 理解 Controller - Service - Dao 的关系 ![](doc/2022-03-23_212315.png) ### 教材P100 Bean 的作用域 Singleton Prototype Factory ### 问题 #### 如何设计一个合理的太阳类? ##### 在设计类和成员时,应该尽可能的降低可访问性,除了公有静态final域的特殊情形之外,公有类都不应该包含公有域,并且要确保公有的静态final域所引用的对象是不可变的。 ![img.png](img.png)