Skip to content

Commit 7d677a0

Browse files
authored
Add info about multiple base packages
1 parent acfd199 commit 7d677a0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/configuration/configuration.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ Add the following to the spring `application.properties` file:
1515

1616
It's recommended to structure the project such that all consumers and producers (classes containing listener/producer methods) are in the same package - it's not mandatory, and if they're scattered across multiple packages, just provide the highest in hierarchy package that contains all classes.
1717

18+
You can add multiple base packages separated by commas.
19+
1820
The `base-package` will be scanned for classes containing `@Component` annotated classes (that includes `@Service` annotated classes) for methods annotated with `@JmsListener`, `@KafkaListener`, `MessageMapping`, `@RabbitListener`, `@SqsListener`, `@AsyncListener`, `@AsyncPublisher`, etc.
1921
`@Configuration` classes are scanned for `@Bean` containing the previously mentioned annotations as well.
2022

0 commit comments

Comments
 (0)