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

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c++ - CryptStringToBinary API behavior -