SpringBoot中使用@Value注解读取不到配置文件yml里面的值 1.使用了static或者finale修饰 2.类上没加@Component注解(或@Service等) 3.类被new新建了实例,没有用@Autowired