diff --git a/GoMybatisEngine_test.go b/GoMybatisEngine_test.go index 92a511a..539cc73 100644 --- a/GoMybatisEngine_test.go +++ b/GoMybatisEngine_test.go @@ -206,10 +206,10 @@ func InitMapperByLocalSession() ExampleActivityMapperImpl { var engine = GoMybatisEngine{}.New() //mysql链接格式为 用户名:密码@(数据库链接地址:端口)/数据库名称 例如root:123456@(***.mysql.rds.aliyuncs.com:3306)/test db, err := engine.Open("mysql", "") //此处请按格式填写你的mysql链接,这里用*号代替 - db.SetMaxOpenConns(200) //连接池最大打开数 if err != nil { panic(err.Error()) } + db.SetMaxOpenConns(200) //连接池最大打开数 var bytes = []byte(`