springboot启动失败
来源:11-2 使用mybatis+SpringBoot完成第一个查询demo

慕侠8292714
2018-11-01
2018-11-01 11:38:14.043 [main] INFO com.course.Application - Starting Application on yhq-PC with PID 7524 (C:\Users\yhq\muke\AutoTest\Chapter11\target\classes started by yhq in C:\Users\yhq\muke\AutoTest)
2018-11-01 11:38:14.051 [main] INFO com.course.Application - No active profile set, falling back to default profiles: default
2018-11-01 11:38:15.398 [main] WARN org.mybatis.spring.mapper.ClassPathMapperScanner - No MyBatis mapper was found in ‘[com.course]’ package. Please check your configuration.
2018-11-01 11:38:17.591 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8877 (http)
2018-11-01 11:38:17.672 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2018-11-01 11:38:17.673 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet Engine: Apache Tomcat/9.0.12
2018-11-01 11:38:17.705 [main] INFO org.apache.catalina.core.AprLifecycleListener - The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:\Program Files\Java\jdk1.8.0_191\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\AMD\ATI.ACE\Core-Static;C:\Program Files\Java\jdk1.8.0_144\bin;C:\Program Files\Java\jdk1.8.0_144\jre\bin;C:\Python27;C:\Users\yhq\AppData\Local\Android\sdk\tools;C:\Users\yhq\AppData\Local\Android\sdk\platform-tools;C:\Users\yhq\Desktop\appium\apache-maven-3.3.9-bin\apache-maven-3.3.9\bin;C:\Program Files\nodejs;C:\Program Files (x86)\Appium\node_modules.bin;%MAVEN_HOME\bin;C:\Program Files\Git\cmd;C:\Users\yhq\AppData\Roaming\npm;.]
2018-11-01 11:38:18.212 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2018-11-01 11:38:18.213 [main] INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 4028 ms
2018-11-01 11:38:18.279 [main] ERROR org.springframework.boot.web.embedded.tomcat.TomcatStarter - Error starting Tomcat context. Exception: org.springframework.beans.factory.BeanCreationException. Message: Error creating bean with name ‘formContentFilter’ defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.web.servlet.filter.OrderedFormContentFilter]: Factory method ‘formContentFilter’ threw exception; nested exception is java.lang.NoClassDefFoundError: Could not initialize class com.fasterxml.jackson.databind.ObjectMapper
2018-11-01 11:38:18.363 [main] INFO org.apache.catalina.core.StandardService - Stopping service [Tomcat]
2018-11-01 11:38:18.412 [main] WARN o.s.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
2018-11-01 11:38:18.449 [main] INFO o.s.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener -
Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2018-11-01 11:38:18.495 [main] ERROR org.springframework.boot.SpringApplication - Application run failed
org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
1回答
-
大周
2018-11-01
换log4j就可以啦
012018-11-02
相似问题