MyBatis工做流程

Mybatis工做流數據庫

讀取配置文件 app

生成SqlSessionFactory 
spa

創建SqlSessionorm


創建 

調用Mybatis提供的API 
工作流


查詢MAP配置

返回結果 
it

關閉SqlSession  

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   


相關文章
相關標籤/搜索