Skip to content

Commit

Permalink
add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed Jun 30, 2020
1 parent 075dbe0 commit 2edec4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GoMybatisEngine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(`<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
Expand Down

0 comments on commit 2edec4a

Please sign in to comment.