Solution to "Could not resolve placeholder" reported when SpringBoot project starts

The reason for the error is that there is more than one configuration file, and you need to specify which configuration file to use, as shown below:

Insert image description here

Since the bootstrap.yml file has the highest loading priority, we configure it in it and specify which configuration file to use.

spring:
  profiles:
    active: local

Guess you like

Origin blog.csdn.net/QinLaoDeMaChu/article/details/127276566