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