thank you Andy
I solved by removing the cas-server-core-configuration library from the 
pom.xml and following your instructions 

Regards

Giuseppe


Il giorno mercoledì 2 gennaio 2019 15:23:53 UTC+1, Andy Ng ha scritto:
>
> 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/809ed484-c739-4952-9f5e-cd39b484b2b5%40apereo.org.

Reply via email to