Hello.
How to setup
using @Configuration classes, and not the XML configuration files.<jpa:repositories base-package=""/>
Of course, it is possible to @ImportResource always, but how do it just inside java config class?
Hello.
How to setup
using @Configuration classes, and not the XML configuration files.<jpa:repositories base-package=""/>
Of course, it is possible to @ImportResource always, but how do it just inside java config class?
Hello
I am assuming you want remove XML and work around with Java only
Check the API for these annotations
- Configuration
- Configurable
- ComponentScan (Your solution)
HTH
- Manuel Jordan
Kill Your Pride, Share Your Knowledge With All
The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7
Blog
Technical Reviewer of Apress
- Pro SpringSource dm Server
- Spring Enterprise Recipes: A Problem-Solution Approach
- Spring Recipes: A Problem-Solution Approach, 2nd Edition
- Pro Spring Integration
- Pro Spring Batch
- Pro Spring 3
- Pro Spring MVC: With Web Flow
- Pro Spring Security
I have similar issue, trying to use Java Configuration instead of <mongo:repositories .../>.
Then I found this JIRA ticket: https://jira.springsource.org/browse/DATACMNS-47
Unfortunately this is minor priority. Let's vote it up![]()