阿巴阿巴
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"Crimson-Gatekeeper/internal/common"
|
||||
"Crimson-Gatekeeper/internal/database"
|
||||
"Crimson-Gatekeeper/internal/route"
|
||||
"fmt"
|
||||
|
||||
"github.com/go-spring/spring-core/gs"
|
||||
)
|
||||
@@ -11,9 +10,8 @@ import (
|
||||
type Test struct{}
|
||||
|
||||
func main() {
|
||||
gs.Provide(common.GetDataBaseClient)
|
||||
gs.Provide(common.GetQuery)
|
||||
gs.Provide(database.GetDataBaseClient)
|
||||
gs.Provide(database.GetQuery)
|
||||
gs.Provide(route.NewTestBoot).AsRunner()
|
||||
fmt.Println("注入完成")
|
||||
gs.Run()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user