We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
以下代码GetApp2Singleton()后,访问父struct的ServiceImpl1会报空指针,错误panic: runtime error: invalid memory address or nil pointer dereference
// +ioc:autowire=true // +ioc:autowire:type=singleton type App struct { ServiceImpl1 Service singleton:"main.ServiceImpl1" ServiceImpl2 Service singleton:"main.ServiceImpl2" } // +ioc:autowire=true // +ioc:autowire:type=singleton type App2 struct { App ServiceStruct *ServiceStruct singleton:"" }
singleton:"main.ServiceImpl1"
singleton:"main.ServiceImpl2"
singleton:""
The text was updated successfully, but these errors were encountered:
No branches or pull requests
以下代码GetApp2Singleton()后,访问父struct的ServiceImpl1会报空指针,错误panic: runtime error: invalid memory address or nil pointer dereference
// +ioc:autowire=true
// +ioc:autowire:type=singleton
type App struct {
ServiceImpl1 Service
singleton:"main.ServiceImpl1"
ServiceImpl2 Service
singleton:"main.ServiceImpl2"
}
// +ioc:autowire=true
// +ioc:autowire:type=singleton
type App2 struct {
App
ServiceStruct *ServiceStruct
singleton:""
}
The text was updated successfully, but these errors were encountered: