在这里,当我用spring boot启动我的tomcat服务时,我正陷入异常

时间:2018-09-26 14:34:38

标签: spring-boot

  

刷新尝试:   org.springframework.beans.factory.UnsatisfiedDependencyException:   创建名称为bean的错误   'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration':   通过构造函数参数0表示的不满足的依赖关系;   嵌套异常为   org.springframework.beans.factory.BeanCreationException:错误   创建在类路径资源中定义的名称为“ dataSource”的bean   [org / springframework / boot / autoconfigure / jdbc / DataSourceConfiguration $ Hikari.class]:   通过工厂方法实例化Bean失败;嵌套异常为   org.springframework.beans.BeanInstantiationException:失败   实例化[com.zaxxer.hikari.HikariDataSource]:工厂方法   'dataSource'引发异常;嵌套异常为   java.lang.IllegalStateException:无法加载驱动程序类:   org.h2.Driver 2018-09-26 19:58:55.274信息1308 --- [ost-startStop-1]   ConditionEvaluationReportLoggingListener:

     

启动ApplicationContext时出错。显示条件报告   在启用“调试”的情况下重新运行您的应用程序。 2018-09-26 19:58:55.305   错误1308 --- [ost-startStop-1] o.s.boot.SpringApplication
  :应用程序运行失败

     

org.springframework.beans.factory.UnsatisfiedDependencyException:   创建名称为bean的错误   'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration':   通过构造函数参数0表示的不满足的依赖关系;   嵌套异常为   org.springframework.beans.factory.BeanCreationException:错误   创建在类路径资源中定义的名称为“ dataSource”的bean   [org / springframework / boot / autoconfigure / jdbc / DataSourceConfiguration $ Hikari.class]:   通过工厂方法实例化Bean失败;嵌套异常为   org.springframework.beans.BeanInstantiationException:失败   实例化[com.zaxxer.hikari.HikariDataSource]:工厂方法   'dataSource'引发异常;嵌套异常为   java.lang.IllegalStateException:无法加载驱动程序类:   org.h2.Driver           在org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:767)   〜[spring-beans-5.1.0.RELEASE.jar:5.1.0.RELEASE]           在org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:218)处   〜[spring-beans-5.1.0.RELEASE.jar:5.1.0.RELEASE]           在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1307)   〜[spring-beans-5.1.0.RELEASE.jar:5.1.0.RELEASE]           在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1153)处   〜[spring-beans-5.1.0.RELEASE.jar:5.1.0.RELEASE]           在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:538)处   〜[spring-beans-5.1.0.RELEASE.jar:5.1.0.RELEASE]           在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498)处   〜[spring-beans-5.1.0.RELEASE.jar:5.1.0.RELEASE]           在org.springframework.beans.factory.support.AbstractBeanFactory.lambda $ doGetBean $ 0(AbstractBeanFactory.java:320)   〜[spring-beans-5.1.0.RELEASE.jar:5.1.0.RELEASE]           在org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)   〜[spring-beans-5.1.0.RELEASE.jar:5.1.0.RELEASE]           在org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)   〜[spring-beans-5.1.0.RELEASE.jar:5.1.0.RELEASE]           在org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)   〜[spring-beans-5.1.0.RELEASE.jar:5.1.0.RELEASE]           在org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:393)   〜[spring-beans-5.1.0.RELEASE.jar:5.1.0.RELEASE]

0 个答案:

没有答案