Spring 启动 org.springframework.data.repository.config.BootstrapMode

克里斯蒂安·梅罗·维拉

我正在尝试启动 Spring Boot 服务,但出现此错误:

类型 org.springframework.data.repository.config.BootstrapMode 无法解析。它是从所需的 .class 文件间接引用的

知道我该如何解决吗?

这是 eclipse 所说的问题所在的类:

@Configuration
@EnableTransactionManagement
@EnableJpaRepositories(
        entityManagerFactoryRef = "oracleCentralEntityManagerFactory",
        basePackages = { "es.eci.amv.repository.oracleCentral" })
public class OracleCentralConfig {

    @Bean(name = "oracleCentralDataSource")
    @ConfigurationProperties(prefix="spring.oracle-central.datasource")
    public DataSource oracleCentralDataSource() {
        return DataSourceBuilder.create().build();
    }

    @Bean(name = "oracleCentralEntityManagerFactory")
    public LocalContainerEntityManagerFactoryBean oracleCentralEntityManagerFactory(
            EntityManagerFactoryBuilder builder,
            @Qualifier("oracleCentralDataSource") DataSource oracleCentralDataSource) {
        return builder
                .dataSource(oracleCentralDataSource)
                .packages("es.eci.amv.model.oracleCentral")
                .persistenceUnit("oracle-central")
                .build();
    }

    @Bean(name = "oracleCentralTransactionManager")
    public PlatformTransactionManager oracleCentralTransactionManager(
            @Qualifier("oracleCentralEntityManagerFactory") EntityManagerFactory oracleCentralEntityManagerFactory) {
        return new JpaTransactionManager(oracleCentralEntityManagerFactory);
    }

}
克里斯蒂安·梅罗·维拉

您必须将 org.springframework.data 的版本更改为 Spring 引导版本。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

在运行测试时面临'NoClassDefFoundError:org / springframework / data / repository / config / BootstrapMode'问题

遇到问题“在春季启动应用程序中找不到类[org.springframework.data.jdbc.repository.config.JdbcConfiguration]

java.lang.NoSuchMethodError:org.springframework.data.jpa.repository.config.JpaRepositoryConfigExtension.registerIfNotAlreadyRegistered

java.lang.NoSuchMethodError: org.springframework.data.repository.config.RepositoryConfigurationSource.getAttribute

Spring 启动 JMS 侦听器 - org.springframework.jms.config.JmsListenerEndpointRegistry.isAutoStartup()Z

启动spring时出错,找不到类[org.springframework.ws.config.annotation.WsConfigurationSupport]

org.springframework.data.repository 可以被 Hibernate 管理吗?

无法解析 org.springframework.data.repository.Repository 类型。它是从所需的 .class 文件间接引用的

Spring + Spring Security + Hibernate org.springframework.aop.config.AopNamespaceUtils.registerAutoProxyCreatorIfNecessary

java.lang.NoClassDefFoundError::带有Spring Security的org / springframework / aop / config / AbstractInterceptorDrivenBeanDefinitionDecorator

ClassNotFoundException:尝试升级Spring Boot版本时的org.springframework.kafka.listener.config.ContainerProperties

如何从org.springframework.data.repository.CrudRepository后代中取消代理子对象

Spring启动应用程序中的org.springframework.beans.factory.BeanCreationException

由于找不到 org.springframework.boot.SpringApplication,main 方法中的 Spring 启动错误

Spring AOP在启动时失败:NoSuchMethodError:org.springframework.core.annotation.OrderUtils.getOrder

无法解析org.springframework.data.repository.query.QueryByExampleExecutor类型。从所需的.class文件间接引用它

当我启动应用程序时,使用@around 的 Spring AOP 抛出 org.springframework.beans.factory.BeanCreationException

Spring Boot 1.4.2.RELEASE错误在启动java.lang.ClassNotFoundException:org.springframework.beans.factory.ObjectProvider

ClassNotFoundException:org.springframework.cassandra.core.Cancellable与spring-data-cassandra版本1.2.1

Spring-boot CRUD 应用程序无法启动,出现“启动 Tomcat 上下文时出错。异常:org.springframework.beans.factory.UnsatisfiedDependency

org.springframework.data.redis.serializer.SerializationException

org.springframework.data.cassandra.CassandraUncategorizedException

java.lang.NoClassDefFoundError:org / springframework / beans / factory / config / EmbeddedValueResolver

NoSuchMethodError:org.springframework.beans.factory.config.ConfigurableListableBeanFactory

缺少org.springframework.security.config软件包

启动jasperserver失败:org.springframework.beans.factory.BeanCreationException

Spring Data Rest错误:由以下原因引起:org.springframework.data.mapping.PropertyReferenceException:未找到Project类型的属性名称

Spring Data Repository StackOverflow

缺少工件org.springframework:spring-context:jar:$ {org.springframework-version}