Injecting values for static constants in Spring

前端 未结 2 1813
借酒劲吻你
借酒劲吻你 2020-12-09 11:09

In one of my classes there is a public static String member and I need set this value in the applicationContext.xml! That is, is it possible for u

2条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-09 11:23

    yes there is an example on this link http://planproof-fool.blogspot.com/2010/03/spring-setting-static-fields.html

提交回复
热议问题