I'm running spring application (version 4.3.3) and trying to refresh application context beans including profiles changes.
After changing spring.profiles.active
property (at runtime) and calling refresh method on application context, beans defined within profiles are not getting refreshed.
After changing property in the configuration file followed by application restart everything is correct.
How can I refresh the context respecting profile change?