Is there a way to specify a default property value in Spring XML?

后端 未结 7 900
傲寒
傲寒 2020-12-02 07:17

We are using a PropertyPlaceholderConfigurer to use java properties in our Spring configuration (details here)

eg:

         


        
相关标签:
7条回答
  • 2020-12-02 07:45

    Spring 3 supports ${my.server.port:defaultValue} syntax.

    0 讨论(0)
提交回复
热议问题