spring-projects / spring-projects/spring-modulith
Can't use event features without @EnableAutoConfiguration
@odrotbohm is already working on this.
Since Jan 9, 2023.
- Dominant language
- Java
- Stars
- 1.2k
- Forks
- 222
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I try to use your modular monolithic approach for some month now, and I have an application in which I don't use @SpringBootApllication annotation (or @Modulith, I am using @Modulithic instead), so I can control what is loaded into the Spring context manually by using @ImportAutoConfiguration.
I know you generally advice to reduce the class visibility as much as possible; but in this case, I can't use any event features (with JdbcEventPublicationAutoConfiguration or even @ApplicationModulesEndpointConfiguration) because those auto configuration classes have package visibility. And I can't manually declare the needed beans because their classes aren't public neither.
Is it possible to change the visibility of auto configuration classes to public? Or do I have to change my approach?
Thank you in advance. And thank you for your work.
Regards.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.