2018年2月24日 下午3:32
学习目标:
- 如何实际及封装无线层级的树状数据结构
- 递归算法的设计思想

注意我红框框出的内容
4. 如何处理复杂对象排重
1. 使用set集合
5. 重写hashcode和equal的注意事项
1. 缘由:当我们使用set
2. 我们使用set
3. 在这里,我们只能自己去写
4. 操作:去Pojo/Category实体类中,快捷键control + enter
5. 最后的效果:
增加功能的步骤:
- 新建文件controller,service(接口+实现)
- 每个文件的依赖对象
- controller依赖于:service接口
- service依赖于:mapper接口
- 每个文件的依赖对象
- 【controller】在controller方法中填写最上层的操作流程,空下需要调用service的部分
- 【service】在service方法中填写该层的操作流程,空下需要调用mapper的部分
- 【dao/mapper接口】就是一个接口,声明了就行了,具体的内容在resource\mappers中xml
- 【resource\mappers xml】就是写sql语句,当然要符合xml的语法的
- 返回补全我们空下的内容
举例说明:
注:注意我在图中标出的红框配置,一点不能错
1.CategoryManagerController

2.CategoryServiceImpl

3.ICategoryService

4.dao/ProductMapper

5.Sources_mappers_CategoryMapper