javaweb开发 idea ssm开发
Posted 子枫Eric
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了javaweb开发 idea ssm开发相关的知识,希望对你有一定的参考价值。
## dao整合mybatis
1. 添加依赖
2. 写公共接口
3. 继承接口
在子类中引入父类
![](https://img2018.cnblogs.com/blog/1648143/201911/1648143-20191115212529658-1528481599.jpg)
引入依赖model
![](https://img2018.cnblogs.com/blog/1648143/201911/1648143-20191115212534663-1643155698.jpg)
dao层创建mapper
![](https://img2018.cnblogs.com/blog/1648143/201911/1648143-20191115212537223-100296146.jpg)
![](https://img2018.cnblogs.com/blog/1648143/201911/1648143-20191115212539019-1066643414.jpg)
![](https://img2018.cnblogs.com/blog/1648143/201911/1648143-20191115212540602-1874414366.jpg)
![](https://img2018.cnblogs.com/blog/1648143/201911/1648143-20191115212542693-1288233551.jpg)
![](https://img2018.cnblogs.com/blog/1648143/201911/1648143-20191115212544953-1123766619.jpg)
## service 依赖dao
添加依赖
![](https://img2018.cnblogs.com/blog/1648143/201911/1648143-20191115212547555-473344218.jpg)
创建
![](https://img2018.cnblogs.com/blog/1648143/201911/1648143-20191115212549878-38171509.jpg)
本节结构
![](https://img2018.cnblogs.com/blog/1648143/201911/1648143-20191115212553716-678647971.jpg)
> 更多精彩文章请关注 [王明昌博客](https://www.wangmingchang.com)
以上是关于javaweb开发 idea ssm开发的主要内容,如果未能解决你的问题,请参考以下文章