[英]Can we have $ in spring bean id value?
bean id="terminal$containerManager" />
bean id =“ terminal $ containerManager” />
What is the meaning of $ in the bean id ? bean id中的$是什么意思?
'$' is useful for bean class when you wish to refer to inner static class. 当您希望引用内部静态类时,'$'对于bean 类很有用。 For id it is pretty useless
对于id来说,这是毫无用处的
<bean id="myBean" class="my.package.OuterClass$InnerClass">
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.