How do I set the spring active profile using consul?

246 Views Asked by At

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

0

There are 0 best solutions below