@Bean
    public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer(
        final ConfigurableApplicationContext applicationContext) {
        val environment = applicationContext.getEnvironment();
        val nativeSources = CasConfigurationPropertiesEnvironmentManager.configureEnvironmentPropertySources(environment);
        val locator = applicationContext.getBean(CasConfigurationPropertiesSourceLocator.BOOTSTRAP_PROPERTY_LOCATOR_BEAN_NAME, PropertySourceLocator.class);
        nativeSources.addPropertySource(locator.locate(environment));
        environment.getPropertySources().addFirst(nativeSources);
        val cfg = new PropertySourcesPlaceholderConfigurer();
        cfg.setIgnoreUnresolvablePlaceholders(true);
        cfg.setLocalOverride(true);
        cfg.setEnvironment(environment);
        cfg.setPropertySources(environment.getPropertySources());
        return cfg;
    }
This is {@link CasNativeSupportAutoConfiguration}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-native/src/main/java/org/apereo/cas/config/CasNativeSupportAutoConfiguration.java