Fix the order error of context.

This commit is contained in:
zicla
2019-04-28 00:44:43 +08:00
parent 3ffc4090e0
commit cd3b487fa8
2 changed files with 4 additions and 3 deletions

View File

@ -195,7 +195,8 @@ func (this *Context) GetBean(bean core.IBean) core.IBean {
//初始化每个Bean
func (this *Context) initBeans() {
for _, bean := range this.BeanMap {
for key, bean := range this.BeanMap {
core.LOGGER.Info("init %s", key)
bean.Init()
}
}