配置文件 image.png 注入静态变量 image.png 注意 类上面有:@Component注解 使用注入的静态变量 image.png 成功 image.png 个人微信公众,经常更新一些实用的干货: 相关文章: