spring-data-mongodb icon indicating copy to clipboard operation
spring-data-mongodb copied to clipboard

Enable auto-startup for DefaultMessageListenerContainer

Open jhl221123 opened this issue 6 months ago • 0 comments

This PR modifies DefaultMessageListenerContainer to enable auto-startup by default, allowing it to participate more fully in the Spring container-managed lifecycle.

Key changes:

  • Introduced an autoStartup boolean property (defaulting to true), making isAutoStartup() return this value.
  • A public setter setAutoStartup(boolean) allows users to disable this behavior if necessary.

Closes #4403

  • [X] You have read the Spring Data contribution guidelines.
  • [X] You use the code formatters provided here and have them applied to your changes. Don’t submit any formatting related changes.
  • [X] You submit test cases (unit or integration tests) that back your changes.
  • [X] You added yourself as author in the headers of the classes you touched. Amend the date range in the Apache license header if needed. For new types, add the license header (copy from another file and set the current year only).

jhl221123 avatar May 18 '25 15:05 jhl221123