标签:throw raw 常见 sim ffffff bmc contex ext set
public class Candy implements ApplicationContextAware, BeanNameAware, EmbeddedValueResolverAware { //bean的名称 private String name; //容器 private ApplicationContext applicationContext; //配置文件中的值 private String nickname; @Override public void setBeanName(String name) { this.name = name; } @Override public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { this.applicationContext = applicationContext; } @Override public void setEmbeddedValueResolver(StringValueResolver resolver) { this.nickname = resolver.resolveStringValue("${bottle.nickname}"); } }
标签:throw raw 常见 sim ffffff bmc contex ext set
原文地址:https://www.cnblogs.com/dubhlinn/p/10708211.html