Skip to content

Commit

Permalink
Merge pull request #7 from go-spring-projects/fix-configuration-depends
Browse files Browse the repository at this point in the history
Fixed circular dependency errors caused by dependencies
  • Loading branch information
limpo1989 authored Nov 15, 2023
2 parents 2dd2233 + 4ee3d41 commit 7b8589c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gs/gs.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ func (c *container) Configuration(i interface{}) *BeanDefinition {
}
}

// depends on parent bean
bd.DependsOn(parentBean.ID()).On(cond.OnBean(parentBean.ID()))
// Inherit the parent conditions
bd.On(cond.OnBean(parentBean.ID()))
}

return c.Accept(parentBean)
Expand Down

0 comments on commit 7b8589c

Please sign in to comment.