美文网首页
商铺开发遇到的bug

商铺开发遇到的bug

作者: zackxizi | 来源:发表于2019-11-14 08:04 被阅读0次
  • ERROR org.springframework.web.servlet.DispatcherServlet - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/exc/InvalidDefinitionException
    原因是因为jackson-databind版本太低了,将版本设置为2.9.5
<dependency>
    <groupId>com.fasterxml.jackson.core</groupId>
    <artifactId>jackson-databind</artifactId>
    <version>2.9.5</version>
</dependency>

  • java.lang.AbstractMethodError: Method com/mchange/v2/c3p0/impl/NewProxyResultSet.isClosed()Z is abstract
    c3p0版本太低了造成的
    将c3p0版本改为以下版本并且重新加载maven
<dependency>
    <groupId>com.mchange</groupId>
    <artifactId>c3p0</artifactId>
    <version>0.9.5.2</version>
</dependency>

相关文章

网友评论

      本文标题:商铺开发遇到的bug

      本文链接:https://www.haomeiwen.com/subject/acbcictx.html