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:
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