Is there a shorthand for creating a String constant in Spring context XML file?

后端 未结 4 1003
[愿得一人]
[愿得一人] 2021-02-01 14:36

I need to define a string value in Spring context XML file that is shared by multiple beans.

This is how I do it:

<         


        
4条回答
  •  没有蜡笔的小新
    2021-02-01 15:23

    You may be able to use the following:

    
        
    
    
    
        ...non-shared properties...
    
    
    
        ...non-shared properties...
    
    

    However, that relies on the property having the same name, so may not be applicable for you.

提交回复
热议问题