MyBatis工作流程

别等时光非礼了梦想. 提交于 2019-12-05 06:17:09

Mybatis工作流

读取配置文件

生成SqlSessionFactory 

建立SqlSession


建立 

调用Mybatis提供的API 


查询MAP配置

返回结果 

关闭SqlSession  

Mybatis工作流——HelloWorld

建立MySQL数据库 

建立JiKeUser表 

键入一条记录

建立JiKeUser类 

查询代码  

bug处理:

      The method selectOne(String, Object) in the type SqlSession is not applicable for the arguments (String, int)

       处理办法:项目文件夹,右键,properties,Java Compiler 修改Compiler compliance lever 为1.6   


易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!