最近我对一件事感到困惑。我PlaceHolderConfigurer也在 in中定义applicationContext.xml和配置,例如它被称为具有I injection 值的. 并且这个bean也被注解了,然后我在dispatch-servlet.xml中添加。我认为 property: name doesn't get value, PlaceHolderConfigurer can't be shared between ,但实际上它具有我在属性文件中配置的值。那么有人可以为我解释一下吗?任何事情都会受到赞赏。谢谢1 beanapplicationContext.xmlmyServiceproperty: name@Value($env{name})@Service<Component-scan.....>because Xml bean is overridden by component scan bean andapplication context and dispatch servlet context