Spring annotation attribute setting with method invocation
I've got the spring configuration class:
@Configuration
@EnableJpaRepositories
InfrastructureContextConfiguration
@Bean
public LocalContainerEntityManagerFactoryBean entityManagerFactory()
{...}
I wish to set the entityManagerFactoryRef attribute of the
@EnableJpaRepositories with entityManagerFactory().getObject() invocation.
Can I do that and how if it is allowed?
No comments:
Post a Comment