SpringBoot项目启动报“Could not resolve placeholder“解决方法

报错原因是配置文件不止一个,需要指定使用哪个配置文件,如下图:

在这里插入图片描述

由于 bootstrap.yml 文件的加载优先级最高,所以我们在它里面进行配置,指定使用哪个配置文件

spring:
  profiles:
    active: local

猜你喜欢

转载自blog.csdn.net/QinLaoDeMaChu/article/details/127276566
今日推荐