Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在ninject等其他 IoC 容器中,您可以非常轻松地设置上下文绑定。我想知道 Spring.net IoC 容器是否支持上下文绑定?
您可以轻松地使用 Spring 表达式进行上下文绑定。代替
<object name="myotherobject" ... /> <object name="thisobject"> <property name="TheService" ref="myotherobject" />
你可以写
<property name="TheService" expr="<whatever spring expression you like>" />
干杯,埃里希