`
asheng010
  • 浏览: 6054 次
社区版块
存档分类
最新评论
文章列表
来源:http://stackoverflow.com/questions/7253694/spring-how-to-inject-a-value-to-static-field   public class Sample { public static String name; @PostConstruct public void init(){ name = privateName; } @Value("${my.name}") private String privateN ...
Global site tag (gtag.js) - Google Analytics