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

后端 未结 4 897
[愿得一人]
[愿得一人] 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 14:58

    A shorthand to the solution proposed by mrembisz goes like this:

    
    
    
        All beans need me :)
    
    

提交回复
热议问题