Config方法就是专门用于注入需要依赖的配置类,把所有需要依赖注入的对象都放到Config函数里(必须)
goft.Ignite().Config(configuration.NewDBConfig(),configuration.NewServiceConfig()).Config(configuration.NewTestConfig()).Attach(middlewares.NewAddVersion()). //全局中间件Mount("",controllers.NewIndexController(),controllers.NewUserController(),).Launch()
