SpringBoot无法通过注解加载配置文件的属性值

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_26440803/article/details/82528344

在SpringBoot 2.0.4版本中需要添加如下依赖: 

 <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-configuration-processor</artifactId>
            <optional>true</optional>
 </dependency>

猜你喜欢

转载自blog.csdn.net/qq_26440803/article/details/82528344