Try the following:
2. *spring.factories (src/main/resource/META-INF/spring-factories)*
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
mydomain.com.example.MyCasCoreBootstrapStandaloneConfiguration
3. *MyCasCoreBootstrapStandaloneLocatorConfiguration.java*
(src/main/java/yourdomain/
*MyCasCoreBootstrapStandaloneLocatorConfiguration*.java)
@Configuration("myCasCoreBootstrapStandaloneConfiguration ")
@EnableConfigurationProperties(CasConfigurationProperties.class)
@Slf4j
public class MyCasCoreBootstrapStandaloneLocatorConfiguration implements
CasWebflowExecutionPlanConfigurer {
@Autowired
@Qualifier("configurationPropertiesEnvironmentManager")
private ObjectProvider<CasConfigurationPropertiesEnvironmentManager>
configurationPropertiesEnvironmentManager;
@Bean @Autowired @Qualifier("configurationPropertiesLoaderFactory")
public ConfigurationPropertiesLoaderFactory
configurationPropertiesLoaderFactory;
@ConditionalOnMissingBean(name = "casConfigurationPropertiesSourceLocator")
@Bean
public CasConfigurationPropertiesSourceLocator
casConfigurationPropertiesSourceLocator() {
return new MyCasConfigurationPropertiesSourceLocator(
configurationPropertiesEnvironmentManager.getIfAvailable(),
configurationPropertiesLoaderFactory);
}
}
4. *MyCasConfigurationPropertiesSourceLocator.java*
(src/main/java/yourdomain/MyCasConfigurationPropertiesSourceLocator.java)
Although the above is not tested, I do use the above method to load my
other customized java classes, so the above should be able to override the
default
See if that works for you
Cheers!
- Andy
--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/617e670d-9f95-4c17-8479-64fb18ffa4e4%40apereo.org.