代码如下(数据库不同版本使用驱动类可能不同):
代码如下(mysql驱动版本根据实际使用mysql版本调整):
代码中simpleExcutor做真正的数据库语句执行、返回参数封装等操作
使用工厂模式创建SqlSession