Mybatis工做流數據庫
讀取配置文件 •app
生成SqlSessionFactory
spa
創建SqlSessionorm
•調用Mybatis提供的API
工作流
返回結果
it
Mybatis工做流——HelloWorldio
創建MySQL數據庫 配置
•創建JiKeUser表 select
•鍵入一條記錄 •bug
創建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