Home > Back-end >  Springboot application. In the yaml file references the correct pom file variable
Springboot application. In the yaml file references the correct pom file variable

Time:12-30

Problem: build springboot + springcloud project, using the parent-child model form, as shown in figure:

Now want to sub model of pom file set different environment variables, and then in the application. Can be used by the @ @ yml, but will be submitted to the following error:

Watch a lot of posts:
Have said add
 


The SRC/main/resources
True



And add @ plug-in, or add sankeyaml dependence and so on all tried and still error,
More people mislead, add @ @ variable double quotation marks or single quotation marks,



Now for bosses to help guide a wave, thank you!!!!!

CodePudding user response:

Based on the ground floor,,,, wait for a great god building!

CodePudding user response:

Settled, need only pom. XML right - reimport project. [face] qq: 1. GIF

CodePudding user response:

Settled, need only pom. XML right - reimport project.

CodePudding user response:

2 l, positive solutions to the import
  • Related