Simplify all the context link.
This commit is contained in:
@ -7,10 +7,10 @@ type PreferenceService struct {
|
||||
}
|
||||
|
||||
//初始化方法
|
||||
func (this *PreferenceService) Init(context *Context) {
|
||||
func (this *PreferenceService) Init() {
|
||||
|
||||
//手动装填本实例的Bean. 这里必须要用中间变量方可。
|
||||
b := context.GetBean(this.preferenceDao)
|
||||
b := CONTEXT.GetBean(this.preferenceDao)
|
||||
if b, ok := b.(*PreferenceDao); ok {
|
||||
this.preferenceDao = b
|
||||
}
|
||||
|
Reference in New Issue
Block a user