I'm configuring the application.yml file in my Spring Kafka MS and I'm getting a notification that the profiles property is deprecated. This 'profiles' property is deprecated
spring:
profiles:
active: docker
---
The suggested solution is to use this syntax:
spring:
config:
activate:
on-profile: docker
---
But in the log, i can see that 'No active profile set:
I'm using Java 11 with Spring 2.6.2 IDEA: IntelliJ 2022.1 (Ultimate Edition)
: No active profile set, falling back to default profiles: default
CodePudding user response:
I think you are confusing spring.profiles.active
(which is not deprecated
CodePudding user response:
This is a false-positive deprecation warning. This will be fixed in 2022.1.1 version of IntelliJ IDEA. See https://youtrack.jetbrains.com/issue/IDEA-291799/Spring-Boot:-false-positive-deprecation-mark-in-YAML-for-'spring