Pergunta

<mongo:repositories base-package="com.acme.*.repositories" />

Is there a way to do this with new Java based @Configuration support?

Foi útil?

Solução

You can use: @EnableMongoRepositories as of Spring Data JPA 2.1

https://jira.springsource.org/browse/DATACMNS-47

This works in a similar way to @ComponentScan

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top