0

I have a consul env:

spring:
  profiles:
    active: dev
blah blah other stuff

I've verified that the consul env properties are being read by the spring app (it locates the right property source and I can see that its reading properties in other log messages), however this is also appearing in the log

No active profile set, falling back to default profiles: default

Bryan Tan
  • 221
  • 1
  • 11
  • It’s clearly a timing issue. Have you tried using a debugger to walk through the code that spits out the message and the code that reads the property from Consul? – Abhijit Sarkar Mar 14 '22 at 23:35
  • Log file says the PropertySourceBootstrapConfiguration finds the properties file before it tries to set the profile – Bryan Tan Mar 15 '22 at 00:18

0 Answers0