Skip to content

Commit 7b8589c

Browse files
authored
Merge pull request #7 from go-spring-projects/fix-configuration-depends
Fixed circular dependency errors caused by dependencies
2 parents 2dd2233 + 4ee3d41 commit 7b8589c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gs/gs.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,8 @@ func (c *container) Configuration(i interface{}) *BeanDefinition {
284284
}
285285
}
286286

287-
// depends on parent bean
288-
bd.DependsOn(parentBean.ID()).On(cond.OnBean(parentBean.ID()))
287+
// Inherit the parent conditions
288+
bd.On(cond.OnBean(parentBean.ID()))
289289
}
290290

291291
return c.Accept(parentBean)

0 commit comments

Comments
 (0)