Hi,
If you are talking about running the MyApplication under yaml directory, you need to specify an active profile.
In IntelliJ, click "Run" , select "edit configuration". In the VM options, put -Dspring.profiles.active=prod .
Then, you will be able to load the properties from the application.yml.
runConfig.JPG
edit configuration screen shot
Don't get me started about those stupid light bulbs.