加号(+)表示public;减号(-)表示private;井号(#)表示protected
空心三角头 + 虚线 = 表示 类实现了接口
由类指向接口
三角头 + 虚线 = 表示 接口之间的依赖
由需要的指向被需要的接口类型:ICar为IDrive中drive方法的参数
首先,关联 强于 依赖。
举例,维修工人临时用锤子钉钉子,维修工人与锤子是依赖关系,锤子是维修工人钉钉子方法中用到的参数。
维修工人用手接电线,维修工人与手是关联关系,手是维修工人的属性。
聚合,A有B,但是B也可以脱离A存在。
组合,A由B组成,B必须在A之中。
推荐阅读:
vue.js:634 [Vue warn]: Property or method "userName" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See:
SpringBoot 整合 webapp时 访问404的解决办法
状态码:415,发送HTTP请求返回415状态码的解决办法
Vue 打开页面时就加载方法,例如查询
SpringCloud怎么调用多个服务的信息
Spring整合Mybatis
SpringCloud 加入 thymleaf前端页面的方法
Controller之间的跳转
This may be the result of an unspecified view, due to default view name generation
Spring AOP的实现原理
行动消除疑虑