java - @EnableJpaRepositories does not obey to @Primary annotated beans -


i've simple spring setup using @inject, @componentscan , @enablejparepositories. there no need have specific @configurations test, integration or production environments.

i'm using spring test mvc framework , i'm introducing @testconfig containing mocked beans (spring data) repository classes have @primary annotation. @enablejparepositories seems not obey @primary repository beans in testconfig.

is there easy way solve or should split using specific profiles not enabling spring data jpa repositories?


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -