@Configuration @ConditionalOnBean(value=javax.sql.DataSource.class) @ConditionalOnClass(value=) @ConditionalOnMissingBean(value= ) @Import(value=org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfigureRegistrar.class) public class JpaRepositoriesAutoConfiguration extends Object
Auto-configuration
for Spring Data's JPA Repositories.
Activates when there is a bean of type DataSource
configured in the
context, the Spring Data JPA
org.springframework.data.jpa.repository.JpaRepository
type is on the classpath,
and there is no other, existing
org.springframework.data.jpa.repository.JpaRepository
configured.
Once in effect, the auto-configuration is the equivalent of enabling JPA repositories
using the org.springframework.data.jpa.repository.config.EnableJpaRepositories
annotation.
This configuration class will activate after the Hibernate auto-configuration.
EnableJpaRepositories
Modifier and Type | Class and Description |
---|---|
protected static class |
JpaRepositoriesAutoConfiguration.JpaWebConfiguration |
Constructor and Description |
---|
JpaRepositoriesAutoConfiguration() |
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.