mybatis操作步骤
时间:2020-07-15 10:48:39
收藏:0
阅读:33
-
导入mybatis和mysql相关驱动
-
配置mybatis-config.xml文件
-
创建mybatis工具类
-
编写dao接口
-
创建mapper.xml
-
去mybatis-config.xml中注册Dao接口(要用斜杠分割)
-
去pom文件中配置文件加载的位置
-
编写运行
原文:https://www.cnblogs.com/c21w/p/13303170.html
评论(0)