Skip to content

Conversation

@cezary-butler
Copy link

Added health indicator
Added annotation which allows to delay some beans initialization after schema migration is performed
Added ability to disable migration using spring configuration

cezary-butler and others added 2 commits May 14, 2019 14:05
added annotation which allows to delay some beans initialization after schema migration is performed
.setCreateKeyspace(properties.isCreateKeyspace());
}

@Bean
Copy link
Owner

@patka patka May 27, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you are using the bean in the HealthIndicator you should use it in the migrationTaskChain method as well by having it autowired. Otherwise you end up having two instances of that class. This is not necessarily bad but the idea of Spring is to have beans as Singletons unless explicitly stated otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants