mybatis

spring boot 中使用mybatis

 

1.yml文件中读取xml配置文件

 

 2.xml配置,使用mybatis的 mapper  namespace对应上边定义的Dao

 

 3.controller调用service   service调用dao

 

 

 

posted @ 2020-04-09 23:21  abcdefghijklmnop  阅读(155)  评论(0编辑  收藏  举报