Skip to content

Commit

Permalink
refactor(webflux): change condition for commandMessageParser bean cre…
Browse files Browse the repository at this point in the history
…ation

- Update condition from @ConditionalOnWebfluxGlobalErrorEnabled to @ConditionalOnMissingBean
- Remove unnecessary comma in the function parameters
  • Loading branch information
Ahoo-Wang committed Jan 9, 2025
1 parent f2f22b1 commit 153422d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ class WebFluxAutoConfiguration {
}

@Bean
@ConditionalOnWebfluxGlobalErrorEnabled
fun commandMessageParser(commandMessageFactory: CommandMessageFactory,): CommandMessageParser {
@ConditionalOnMissingBean
fun commandMessageParser(commandMessageFactory: CommandMessageFactory): CommandMessageParser {
return DefaultCommandMessageParser(commandMessageFactory)
}

Expand Down

0 comments on commit 153422d

Please sign in to comment.