2019独角兽企业重金招聘Python工程师标准>>>
Mybatis工作流
读取配置文件 •
生成SqlSessionFactory
建立SqlSession
•建立 •
调用Mybatis提供的API
返回结果
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