最佳答案
对于复杂值类型,请不要嵌套map元素,而是使用value-ref属性.默认情况下,value元素仅接受String值.
原文链接:https://www.f2er.com/spring/431578.htmlThe property may be a string,or may be converted to the required type using the JavaBeans PropertyEditor machinery. This makes it possible for application developers to write custom PropertyEditor implementations that can convert strings to arbitrary target objects.
Note that this is recommended for simple objects only. Configure more complex objects by populating JavaBean properties with references to other beans.
您的数据将类似于: