2020-07-31 13:09:40.599 ERROR 4304 --- [ restartedMain] o.s.b.web.embedded.tomcat.TomcatStarter : Error starting Tomcat context. Exception: org.springframework.beans.factory.BeanCreationException. Message: Error creating bean with name 'servletEndpointRegistrar' defined in class path resource [org/springframework/boot/actuate/autoconfigure/endpoint/web/ServletEndpointManagementContextConfiguration$WebMvcServletEndpointManagementContextConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.endpoint.web.ServletEndpointRegistrar]: Factory method 'servletEndpointRegistrar' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'healthEndpoint' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointCo
springboot启动tomcat报错
最新推荐文章于 2024-07-22 03:59:03 发布
这篇博客记录了在启动Spring Boot应用时遇到的Tomcat启动错误,具体表现为BeanCreationException和DataSource的问题。错误信息指出无法确定合适的驱动类,并建议检查是否配置了DataSource或者在类路径中包含了嵌入式数据库。解决办法是在配置中添加DataSource的注解,添加后成功启动了应用。
摘要由CSDN通过智能技术生成