white knight

导航

 

参考http://blog.csdn.net/zhayuyao/article/details/78553417

 

@Component
public class A {
   private static String STR;

   @Value("${xx.xx}")
   public void setStr(String str) {
      STR = str;
  }
}

 

posted on 2018-03-02 19:09  white knight  阅读(161)  评论(0编辑  收藏  举报