Skip to content
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 Modulith with MongoDB requires TransactionManager even with transactions disabled #1021

Open
janpetryk opened this issue Jan 17, 2025 · 0 comments

Comments

@janpetryk
Copy link

spring:
  modulith:
    events:
      republish-outstanding-events-on-restart: true
      externalization:
        enabled: true
      mongodb:
        transaction-management:
          enabled: false

Expected Behavior
The application should start successfully since transactions are explicitly disabled.

Actual Behavior
Application fails to start with:

***************************
APPLICATION FAILED TO START
***************************
Description:
A component required a bean of type 'org.springframework.transaction.TransactionManager' that could not be found.

Environment

Spring Boot: 3.2.2
Spring Modulith: 1.3.1
MongoDB

Suggestion
Add support for running without a TransactionManager when transactions are disabled via properties, eliminating the need for custom configuration.

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

No branches or pull requests

1 participant