-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spring Boot 3 - javax.annotation.PostConstruct -> jakarta.annotation.PostConstruct #131
Comments
I believe using the @bean(initMethod='', destroyMethod='') will work well and we can completely remove annotation. |
Good point. I'd forgotten about that feature. 🤣 |
Hmm... user-written code needs to use @PostConstruct - see eventuate-tram/eventuate-tram-sagas@33974c7 I think the API would be better if user visible @bean classes implemented InitializingBean This might, however, require Thoughts? |
This might be a non-issue. These beans are created by factories, which can call initialize. That's what eventuate-tram/eventuate-tram-sagas@2e8071d should have done |
…alling initialize() - Spring 3/@PostConstruct issue eventuate-foundation/eventuate-common#131
…bean(initMethod = "initialize") - Spring 3/@PostConstruct issue eventuate-foundation/eventuate-common#131
Some Eventuate classes use
@PostConstruct
, and so cannot support Spring Boot 2 and Spring 3.Perhaps the solution replace the annotation with old-style
InitializingBean
/cc @kwonglau
The text was updated successfully, but these errors were encountered: