bee must have one register DataBase alias named
default
在你初始化db,注册默认数据库时,看看你是否import
初始化注册数据库驱动driver
import (
_ "github.com/go-sql-driver/mysql"
_ "github.com/lib/pq"
_ "github. com/mattn/go-sqlite3"
)
bee must have one register DataBase alias named `default`
原文地址:https://www.cnblogs.com/niuben/p/14131485.html