试图集成JPA hibernate和SpringBoot

启动ApplicationContext时出错 . 要显示自动配置报告,请在启用“debug”的情况下重新运行应用程序 . 10:49:55,001错误[org.springframework.boot.SpringApplication](ServerService线程池 - 2178)应用程序启动失败:org.springframework.beans.factory.BeanCreationException:创建类路径资源中定义的名称为'entityManagerFactory'的bean时出错[org / springframework / boot / autoconfigure / orm / jpa / HibernateJpaAutoConfiguration.class]:调用init方法失败;嵌套异常是java.lang.NoSuchMethodError:org.jboss.logging.Logger.debugf(Ljava / lang / String; I)V org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1634)[ spring-beans-4.3.18.RELEASE.jar:4.3.18.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)[spring-beans-4.3.18.RELEASE . jar:4.3.18.RELEASE] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)[spring-beans-4.3.18.RELEASE.jar:4.3.18.RELEASE] at org org.springframework.beans.factory.support中的.springframework.beans.factory.support.AbstractBeanFactory $ 1.getObject(AbstractBeanFactory.java:312)[spring-beans-4.3.18.RELEASE.jar:4.3.18.RELEASE] . DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.3.18.RELEASE.jar:4.3.18.RELEASE] at o org.springframework.beans.factory.support中的rg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)[spring-beans-4.3.18.RELEASE.jar:4.3.18.RELEASE] . orB.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1080)中的AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)[spring-beans-4.3.18.RELEASE.jar:4.3.18.RELEASE] [spring] -context-4.3.18.RELEASE.jar:4.3.18.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:857)[spring-context-4.3.18.RELEASE.jar:4.3 .18.RELEASE]在org.springframework.boot上的org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)[spring-context-4.3.18.RELEASE.jar:4.3.18.RELEASE] . 在org.springfra上的context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)[spring-boot-1.5.15.RELEASE.jar:1.5.15.RELEASE] mework.boot.SpringApplication.refresh(SpringApplication.java:693)[spring-boot-1.5.15.RELEASE.jar:1.5.15.RELEASE] org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360) [spring-boot-1.5.15.RELEASE.jar:1.5.15.RELEASE]在org.springframework.boot.SpringApplication.run(SpringApplication.java:303)[spring-boot-1.5.15.RELEASE.jar:1.5 .15.RELEASE] org.springframework上的org.springframework.boot.web.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:156)[spring-boot-1.5.15.RELEASE.jar:1.5.15.RELEASE] . boot.web.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:136)[spring-boot-1.5.15.RELEASE.jar:1.5.15.RELEASE] org.springframework.boot.web.support.SpringBootServletInitializer.onStartup( SpringBootServletInitializer.java:91)[spring-boot-1.5.15.RELEASE.jar:1.5.15.RELEASE] org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:169 )[spring-web-4.3.18.RELEASE.jar:4.3.18.RELEASE]

我的实体课

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
public class ApiConfig  {


    @Id
    @GeneratedValue(strategy=GenerationType.SEQUENCE)
    @Column(name="KEY")
    private Long key;

    @Column(name="SERVICE_NAME")
    private String serviceName;

    @Column(name="CLIENT_ID")
    private String clientId;
    @Column(name="APP_NAME")
    private String appName;
    @Column(name="RPA_NAME")
    private String rpaName;
    @Column(name="TRANSACTION_NAME")
    private String transactionName;
    @Column(name="ACTIVE")
    private String active;
    @Column(name="START_DATE")
    private Date startDate;
    @Column(name="UPDATED_DATE")
    private Date updatedDate;
    public Long getKey() {
        return key;
    }
    public void setKey(Long key) {
        this.key = key;
    }
    public String getServiceName() {
        return serviceName;
    }
    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }
    public String getClientId() {
        return clientId;
    }
    public void setClientId(String clientId) {
        this.clientId = clientId;
    }
    public String getAppName() {
        return appName;
    }
    public void setAppName(String appName) {
        this.appName = appName;
    }
    public String getRpaName() {
        return rpaName;
    }
    public void setRpaName(String rpaName) {
        this.rpaName = rpaName;
    }

    public String getTransactionName() {
        return transactionName;
    }
    public void setTransactionName(String transactionName) {
        this.transactionName = transactionName;
    }
    public String getActive() {
        return active;
    }
    public void setActive(String active) {
        this.active = active;
    }
    public Date getStartDate() {
        return startDate;
    }
    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }
    public Date getUpdatedDate() {
        return updatedDate;
    }
    public void setUpdatedDate(Date updatedDate) {
        this.updatedDate = updatedDate;
    }

}

Application.properties

spring.datasource.url=jdbc:oracle:thin:@zld02392.pp.tt.com:1524:d23233
spring.datasource.username=new
spring.datasource.password=pass
spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.Oracle10gDialect
spring.jpa.hibernate.ddl-auto=create

我的@Repository类

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import com.att.first.ordermanagementautomation.jpa.entity.ApiConfig;

@Repository
public interface IApiConfigRepo extends JpaRepository<ApiConfig,Long>{

}