Cas 6.6.X : spring.main.allow-bean-defenition-overriding

58 views
Skip to first unread message

Mohamed Amdouni

unread,
Nov 6, 2023, 12:52:15 PM11/6/23
to cas-...@apereo.org
Hello,

When starting my cas application, I encountered an error with the messagesource bean. There is a conflict with two classes, MessageSourceAutoConfiguration and CasCoreWebMessageSourceConfiguration. The setting of 
spring.main.allow-bean-defenition-overriding to true resolve the issue as suggested in another thread.
But I would like to check :

Is it the recommended way ? 

Because after setting this parameter, there some other bean definition problems : example : there is multiple transaction manager found between service jpa module and ticket jpa module.

What are the recommended configuration : create a custom spring configuration class with primary beans ?

Thank you 
Reply all
Reply to author
Forward
0 new messages