I have a multi-modules springboot project with structure like this:
|--multiDemo
|--admin (with profiles application.yml and application-dev.yml)
|--infrastructure (with profile application-basic.yml)
I try this in application.yml to active different profiles:
spring:
profiles:
active: basic
When i active "dev", it works well. But when i active "basic", it doesn't work thought the terminal displays The following 1 profile is active: "basic" Why this would happen and how should i acitve profiles in different modules correctly?