- 浏览: 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 ...